Cmake fixes, build adc client and link uhub with pthread if sqlite3 is used.

This commit is contained in:
Jan Vidar Krey 2012-10-02 22:38:51 +02:00
parent 089966d918
commit 25c82076da

View File

@ -83,6 +83,7 @@ set (utils_SOURCES
set (adcclient_SOURCES set (adcclient_SOURCES
${PROJECT_SOURCE_DIR}/tools/adcclient.c ${PROJECT_SOURCE_DIR}/tools/adcclient.c
${PROJECT_SOURCE_DIR}/core/ioqueue.c
) )
add_library(adc STATIC ${adc_SOURCES}) add_library(adc STATIC ${adc_SOURCES})
@ -110,6 +111,10 @@ if (SQLITE_SUPPORT)
target_link_libraries(mod_auth_sqlite sqlite3) target_link_libraries(mod_auth_sqlite sqlite3)
target_link_libraries(uhub-passwd sqlite3) target_link_libraries(uhub-passwd sqlite3)
set_target_properties(mod_auth_sqlite PROPERTIES PREFIX "") set_target_properties(mod_auth_sqlite PROPERTIES PREFIX "")
if (UNIX)
target_link_libraries(uhub pthread)
endif()
endif() endif()
if(WIN32) if(WIN32)