From ae3364289c0ba4f6be4a2e1e76b9dd2c9778c651 Mon Sep 17 00:00:00 2001 From: Jeroen Baert Date: Wed, 6 Nov 2013 15:02:58 +0100 Subject: [PATCH] Glibc Linux compilation fix --- assignment-client/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assignment-client/CMakeLists.txt b/assignment-client/CMakeLists.txt index 6088da94e5..900965e405 100644 --- a/assignment-client/CMakeLists.txt +++ b/assignment-client/CMakeLists.txt @@ -29,7 +29,11 @@ link_hifi_library(voxel-server-library ${TARGET_NAME} ${ROOT_DIR}) include_directories(${ROOT_DIR}/externals/civetweb/include) +if (UNIX) + target_link_libraries(${TARGET_NAME} ${CMAKE_DL_LIBS}) +endif (UNIX) + # link curl for synchronous script downloads find_package(CURL REQUIRED) include_directories(${CURL_INCLUDE_DIRS}) -target_link_libraries(${TARGET_NAME} ${CURL_LIBRARY}) \ No newline at end of file +target_link_libraries(${TARGET_NAME} ${CURL_LIBRARY})