cmake: static library dependencies
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
This commit is contained in:
@ -9,5 +9,4 @@ 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})
|
||||
|
||||
target_link_libraries(fail-${PLUGIN_NAME} fail-sal fail-cpn fail-efw fail-comm)
|
||||
|
||||
Reference in New Issue
Block a user