summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-04-17 22:18:42 (GMT)
committerBrad King <brad.king@kitware.com>2007-04-17 22:18:42 (GMT)
commitfc9ceda5e7f9b721d6174793748ff32ceea15acc (patch)
treea6ee0e3fb683edb350f8a73bc931373c57ed9f4a
parentcb190cdb872dcd8099be2440a96dcde2b7a7d52d (diff)
downloadCMake-fc9ceda5e7f9b721d6174793748ff32ceea15acc.zip
CMake-fc9ceda5e7f9b721d6174793748ff32ceea15acc.tar.gz
CMake-fc9ceda5e7f9b721d6174793748ff32ceea15acc.tar.bz2
ENH: Fixed Plugin test on Cygwin.
-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