summaryrefslogtreecommitdiffstats
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-02-08 21:04:02 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-02-08 21:04:02 (GMT)
commit2e475dc44f5a13db6076c070f4cb6bd65d88861b (patch)
tree8e0aa78bdc4d42789befba3240876b2d9a0b353e /test/CMakeLists.txt
parentd1fc20b6708d59f09186dc583a829377691e225a (diff)
downloaduscxml-2e475dc44f5a13db6076c070f4cb6bd65d88861b.zip
uscxml-2e475dc44f5a13db6076c070f4cb6bd65d88861b.tar.gz
uscxml-2e475dc44f5a13db6076c070f4cb6bd65d88861b.tar.bz2
Missing pthread dependency on linux
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 403de1f..ba982e9 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -109,9 +109,12 @@ add_executable(test-gen-c
${PROJECT_SOURCE_DIR}/contrib/src/evws/evws.c
${GETOPT_FILES})
target_link_libraries(test-gen-c ${LIBEVENT_LIBRARIES})
+
if (WIN32)
- target_link_libraries(test-gen-c Ws2_32)
-
+ target_link_libraries(test-gen-c Ws2_32)
+endif()
+if (UNIX)
+ target_link_libraries(test-gen-c pthread)
endif()
set_target_properties(test-gen-c PROPERTIES FOLDER "Tests")
set_target_properties(test-gen-c PROPERTIES COMPILE_DEFINITIONS "NO_XERCESC;FEATS_ON_CMD")