From 25c82076da39823a0f1fa6cf3a217e1587c2f527 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Tue, 2 Oct 2012 22:38:51 +0200 Subject: [PATCH] Cmake fixes, build adc client and link uhub with pthread if sqlite3 is used. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e87b9e8..e68cfc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,7 @@ set (utils_SOURCES set (adcclient_SOURCES ${PROJECT_SOURCE_DIR}/tools/adcclient.c + ${PROJECT_SOURCE_DIR}/core/ioqueue.c ) add_library(adc STATIC ${adc_SOURCES}) @@ -110,6 +111,10 @@ if (SQLITE_SUPPORT) target_link_libraries(mod_auth_sqlite sqlite3) target_link_libraries(uhub-passwd sqlite3) set_target_properties(mod_auth_sqlite PROPERTIES PREFIX "") + + if (UNIX) + target_link_libraries(uhub pthread) + endif() endif() if(WIN32)