summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/CMakeLists.txt4
-rw-r--r--Tests/Plugin/include/example.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 768ef81..6841c21 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -987,7 +987,7 @@ IF(BUILD_TESTING)
)
# Disable this test on QNX until support is implemented.
- IF(NOT QNXNTO AND NOT CYGWIN)
+ IF(NOT QNXNTO)
ADD_TEST(Plugin ${CMAKE_CTEST_COMMAND}
--build-and-test
"${CMake_SOURCE_DIR}/Tests/Plugin"
@@ -997,7 +997,7 @@ IF(BUILD_TESTING)
--build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
--build-two-config
--test-command bin/example)
- ENDIF(NOT QNXNTO AND NOT CYGWIN)
+ ENDIF(NOT QNXNTO)
IF(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
ADD_TEST(kwsys ${CMAKE_CTEST_COMMAND}
diff --git a/Tests/Plugin/include/example.h b/Tests/Plugin/include/example.h
index f2af886..1d7e8c0 100644
--- a/Tests/Plugin/include/example.h
+++ b/Tests/Plugin/include/example.h
@@ -1,7 +1,7 @@
#ifndef example_h
#define example_h
-#if defined(_WIN32)
+#if defined(_WIN32) || defined(__CYGWIN__)
# if defined(example_exe_EXPORTS)
# define EXAMPLE_EXPORT __declspec(dllexport)
# else