Commit e106fe3a authored by Dominik Charousset's avatar Dominik Charousset

Fix build with testing disabled

parent a5efbcfa
...@@ -251,7 +251,8 @@ function(caf_incubator_add_component name) ...@@ -251,7 +251,8 @@ function(caf_incubator_add_component name)
else() else()
set(targets ${pub_lib_target}) set(targets ${pub_lib_target})
add_library(${pub_lib_target} add_library(${pub_lib_target}
${CAF_INC_ADD_COMPONENT_HEADERS}) ${CAF_INC_ADD_COMPONENT_HEADERS}
${CAF_INC_ADD_COMPONENT_SOURCES})
set_property(TARGET ${pub_lib_target} PROPERTY POSITION_INDEPENDENT_CODE ON) set_property(TARGET ${pub_lib_target} PROPERTY POSITION_INDEPENDENT_CODE ON)
endif() endif()
target_link_libraries(${pub_lib_target} ${CAF_INC_ADD_COMPONENT_DEPENDENCIES}) target_link_libraries(${pub_lib_target} ${CAF_INC_ADD_COMPONENT_DEPENDENCIES})
...@@ -303,7 +304,7 @@ if(CAF_INC_ENABLE_NET_MODULE) ...@@ -303,7 +304,7 @@ if(CAF_INC_ENABLE_NET_MODULE)
add_subdirectory(libcaf_net) add_subdirectory(libcaf_net)
endif() endif()
if(CAF_INC_ENABLE_NET_MODULE) if(CAF_INC_ENABLE_BB_MODULE)
add_subdirectory(libcaf_bb) add_subdirectory(libcaf_bb)
endif() endif()
......
...@@ -19,4 +19,6 @@ caf_incubator_add_component( ...@@ -19,4 +19,6 @@ caf_incubator_add_component(
tokenized_integer_reader) tokenized_integer_reader)
# CAF::bb is header-only, so it won't pull in the dependencies for the tests. # CAF::bb is header-only, so it won't pull in the dependencies for the tests.
target_link_libraries(caf-bb-test PRIVATE CAF::core CAF::internal) if(TARGET caf-bb-test)
target_link_libraries(caf-bb-test PRIVATE CAF::core CAF::internal)
endif()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment