Commit 13c732cb authored by jehan's avatar jehan

fix compilation issue (jehan)

parent b8685d26
......@@ -197,6 +197,7 @@ else()
endif()
check_library_exists("rt" "clock_gettime" "" HAVE_LIBRT)
check_library_exists("dl" "dladdr" "" HAVE_LIBDL)
add_subdirectory(include)
add_subdirectory(src)
......
......@@ -63,6 +63,9 @@ if(ENABLE_STATIC)
if(HAVE_LIBRT)
target_link_libraries(bctoolbox-static rt)
endif()
if(HAVE_LIBDL)
target_link_libraries(bctoolbox-static dl)
endif()
if(BCUNIT_FOUND)
add_library(bctoolbox-tester-static STATIC ${BCTOOLBOX_TESTER_SOURCE_FILES})
set_target_properties(bctoolbox-tester-static PROPERTIES OUTPUT_NAME bctoolbox-tester)
......@@ -97,6 +100,9 @@ if(ENABLE_SHARED)
if(HAVE_LIBRT)
target_link_libraries(bctoolbox PRIVATE rt)
endif()
if(HAVE_LIBDL)
target_link_libraries(bctoolbox PRIVATE dl)
endif()
if(BCUNIT_FOUND)
add_library(bctoolbox-tester SHARED ${BCTOOLBOX_TESTER_SOURCE_FILES})
set_target_properties(bctoolbox-tester PROPERTIES LINKER_LANGUAGE "CXX")
......
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