CMake does not support linker groups, which were used to "automatically" fix circular dependencies between different static FAIL* libraries and the ordering of dynamic external libraries broke linking. CMake can however correctly invoke the linker if dependencies are decribed correctly (even if circular). This required changing all add_dependencies calls between libraries to target_link_libraries (which creates a link-time dependency) and linking all experiments to fail-sal. Change-Id: I3a0d5dddb9b3d963ef538814e20d6b3de85d4ec5
13 lines
330 B
CMake
13 lines
330 B
CMake
set(PLUGIN_NAME tracing)
|
|
|
|
set(MY_PLUGIN_SRCS
|
|
TracingPlugin.cc
|
|
TracingPlugin.hpp
|
|
)
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
## Build library
|
|
add_library(fail-${PLUGIN_NAME} ${MY_PLUGIN_SRCS})
|
|
add_dependencies(fail-${PLUGIN_NAME} fail-comm)
|
|
target_link_libraries(fail-${PLUGIN_NAME} fail-sal fail-cpn fail-efw fail-comm)
|