summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-05-13 08:38:17 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-05-13 08:38:17 (GMT)
commite384dfb778400392d30a098e08ba81e809e383ca (patch)
treed05f13593c3d0df34ef8bf933e3432e147a05558 /test
parent7181462cf3c8e700476119e5243d355e136e71f7 (diff)
downloaduscxml-e384dfb778400392d30a098e08ba81e809e383ca.zip
uscxml-e384dfb778400392d30a098e08ba81e809e383ca.tar.gz
uscxml-e384dfb778400392d30a098e08ba81e809e383ca.tar.bz2
Windows fixes broke the unix builds
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index fdb912d..43b89c0 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -30,7 +30,11 @@ USCXML_TEST_COMPILE(NAME test-lifecycle LABEL general/test-lifecycle FILES src/t
USCXML_TEST_COMPILE(NAME test-validating LABEL general/test-validating FILES src/test-validating.cpp)
# the one binary to test for pass / fail final states
-add_executable(test-state-pass src/test-state-pass.cpp ${PROJECT_SOURCE_DIR}/contrib/src/getopt/getopt.c)
+if (WIN32)
+ add_executable(test-state-pass src/test-state-pass.cpp ${PROJECT_SOURCE_DIR}/contrib/src/getopt/getopt.c)
+else()
+ add_executable(test-state-pass src/test-state-pass.cpp)
+endif()
target_link_libraries(test-state-pass uscxml)
set_target_properties(test-state-pass PROPERTIES FOLDER "Tests")