Ver Fonte

ENH: Fixed Plugin test on Cygwin.

Brad King há 18 anos atrás
pai
commit
fc9ceda5e7
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 2 2
      Source/CMakeLists.txt
  2. 1 1
      Tests/Plugin/include/example.h

+ 2 - 2
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}

+ 1 - 1
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