From e5e53447dc6234ac91e085a0e064cbd2403a800b Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 14 Jan 2014 15:15:01 +0100 Subject: [PATCH] linking against librt now works --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a8669c..d100472 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,7 @@ if(NOT HAVE_CLOCK_GETTIME) message(FATAL_ERROR "Didn't find clock_gettime() or clock_get_time!") endif() else() - set(LIBRARIES ${LIBRARIES} rt) + set(LIBRT rt) endif() endif() @@ -46,11 +46,11 @@ add_subdirectory(src) configure_file(src/config.h.in ${CMAKE_SOURCE_DIR}/src/config.h) -include_directories(${LIBCONFIG_INCLUDE_DIR} ${PROTOBUFC_INCLUDE_DIR} ${SSLIMP_INCLUDE_DIR}) +include_directories(${LIBCONFIG_INCLUDE_DIR} ${PROTOBUFC_INCLUDE_DIR} ${SSLIMP_INCLUDE_DIR}) link_directories(${LIBCONFIG_LIB_DIR} ${PROTOBUFC_LIB_DIR} ${SSLIMP_LIB_DIR}) add_executable(umurmurd ${SOURCE}) install(TARGETS umurmurd RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") add_definitions(${SSLIMP_CFLAGS}) -target_link_libraries(umurmurd ${LIBCONFIG_LIBRARIES} ${PROTOBUFC_LIBRARIES} ${SSLIMP_LIBRARIES}) +target_link_libraries(umurmurd ${LIBCONFIG_LIBRARIES} ${PROTOBUFC_LIBRARIES} ${SSLIMP_LIBRARIES} ${LIBRT}) -- 2.30.2