ENH: Fixed Plugin test on Cygwin.

This commit is contained in:
Brad King 2007-04-17 18:18:42 -04:00
parent cb190cdb87
commit fc9ceda5e7
2 changed files with 3 additions and 3 deletions

View File

@ -987,7 +987,7 @@ IF(BUILD_TESTING)
) )
# Disable this test on QNX until support is implemented. # Disable this test on QNX until support is implemented.
IF(NOT QNXNTO AND NOT CYGWIN) IF(NOT QNXNTO)
ADD_TEST(Plugin ${CMAKE_CTEST_COMMAND} ADD_TEST(Plugin ${CMAKE_CTEST_COMMAND}
--build-and-test --build-and-test
"${CMake_SOURCE_DIR}/Tests/Plugin" "${CMake_SOURCE_DIR}/Tests/Plugin"
@ -997,7 +997,7 @@ IF(BUILD_TESTING)
--build-makeprogram ${CMAKE_TEST_MAKEPROGRAM} --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
--build-two-config --build-two-config
--test-command bin/example) --test-command bin/example)
ENDIF(NOT QNXNTO AND NOT CYGWIN) ENDIF(NOT QNXNTO)
IF(NOT CMAKE_TEST_DIFFERENT_GENERATOR) IF(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
ADD_TEST(kwsys ${CMAKE_CTEST_COMMAND} ADD_TEST(kwsys ${CMAKE_CTEST_COMMAND}

View File

@ -1,7 +1,7 @@
#ifndef example_h #ifndef example_h
#define example_h #define example_h
#if defined(_WIN32) #if defined(_WIN32) || defined(__CYGWIN__)
# if defined(example_exe_EXPORTS) # if defined(example_exe_EXPORTS)
# define EXAMPLE_EXPORT __declspec(dllexport) # define EXAMPLE_EXPORT __declspec(dllexport)
# else # else