summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-16 10:51:51 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-16 10:51:51 +0200
commit10c89779f8ee0a08d6f863ebe969356e14bc374e (patch)
treef4cc1039c41d78ee7f251104a378ac8aa750c029
parent344212516416eef32b0557b63197b9cbd7b3cb31 (diff)
downloadfastd-10c89779f8ee0a08d6f863ebe969356e14bc374e.tar
fastd-10c89779f8ee0a08d6f863ebe969356e14bc374e.zip
Use -pthread instead of library
-rw-r--r--src/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 84f25fe..ea1e8c9 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -24,6 +24,7 @@ add_executable(fastd
${BISON_fastd_config_parse_OUTPUTS}
${METHODS}
)
-target_link_libraries(fastd rt ${CMAKE_THREAD_LIBS_INIT} ${UECC_LIBRARY} ${NACL_LIBRARY})
+set_target_properties(fastd PROPERTIES COMPILE_FLAGS -pthread LINK_FLAGS -pthread)
+target_link_libraries(fastd rt ${UECC_LIBRARY} ${NACL_LIBRARY})
install(TARGETS fastd RUNTIME DESTINATION sbin)