Fix compile on Debian 8 (link it to a library it wants)
This commit is contained in:
parent
ccc2f74e63
commit
31bf927e07
@ -9,13 +9,12 @@ set(SOURCES
|
|||||||
add_library(${PROJECT_NAME} STATIC ${SOURCES})
|
add_library(${PROJECT_NAME} STATIC ${SOURCES})
|
||||||
|
|
||||||
# This is needed by boost thread
|
# This is needed by boost thread
|
||||||
#if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
# target_link_libraries(${PROJECT_NAME} PRIVATE rt)
|
target_link_libraries(${PROJECT_NAME} PRIVATE rt)
|
||||||
#endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
|
|
||||||
target_compile_definitions(${PROJECT_NAME} PUBLIC _FILE_OFFSET_BITS=64)
|
target_compile_definitions(${PROJECT_NAME} PUBLIC _FILE_OFFSET_BITS=64)
|
||||||
target_link_libraries(${PROJECT_NAME} PUBLIC cpp-utils)
|
target_link_libraries(${PROJECT_NAME} PUBLIC cpp-utils)
|
||||||
target_link_libraries(${PROJECT_NAME} PUBLIC rt)
|
|
||||||
|
|
||||||
target_add_boost(${PROJECT_NAME} filesystem system thread chrono)
|
target_add_boost(${PROJECT_NAME} filesystem system thread chrono)
|
||||||
target_enable_style_warnings(${PROJECT_NAME})
|
target_enable_style_warnings(${PROJECT_NAME})
|
||||||
|
Loading…
Reference in New Issue
Block a user