Commit cd86ee7d authored by Ghislain MARY's avatar Ghislain MARY

Use correct variables so to only depend on libbctoolbox and not libbctoolbox-tester.

parent 8e192159
...@@ -34,7 +34,7 @@ apply_compile_flags(BELR_SOURCE_FILES_CXX "CPP" "CXX") ...@@ -34,7 +34,7 @@ apply_compile_flags(BELR_SOURCE_FILES_CXX "CPP" "CXX")
if(ENABLE_STATIC) if(ENABLE_STATIC)
add_library(belr-static STATIC ${BELR_HEADER_FILES} ${BELR_SOURCE_FILES_C} ${BELR_SOURCE_FILES_CXX}) add_library(belr-static STATIC ${BELR_HEADER_FILES} ${BELR_SOURCE_FILES_C} ${BELR_SOURCE_FILES_CXX})
target_link_libraries(belr-static ${BCTOOLBOX_LIBRARIES}) target_link_libraries(belr-static ${BCTOOLBOX_CORE_LIBRARIES})
endif() endif()
if(ENABLE_SHARED) if(ENABLE_SHARED)
add_library(belr SHARED ${BELR_HEADER_FILES} ${BELR_SOURCE_FILES_C} ${BELR_SOURCE_FILES_CXX}) add_library(belr SHARED ${BELR_HEADER_FILES} ${BELR_SOURCE_FILES_C} ${BELR_SOURCE_FILES_CXX})
...@@ -42,7 +42,7 @@ if(ENABLE_SHARED) ...@@ -42,7 +42,7 @@ if(ENABLE_SHARED)
set_target_properties(belr PROPERTIES LINK_FLAGS "-stdlib=libc++") set_target_properties(belr PROPERTIES LINK_FLAGS "-stdlib=libc++")
endif() endif()
set_target_properties(belr PROPERTIES VERSION ${BELR_SO_VERSION}) set_target_properties(belr PROPERTIES VERSION ${BELR_SO_VERSION})
target_link_libraries(belr PRIVATE ${BCTOOLBOX_LIBRARIES}) target_link_libraries(belr PRIVATE ${BCTOOLBOX_CORE_LIBRARIES})
if(MSVC) if(MSVC)
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/belr.pdb install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/belr.pdb
......
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