summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-11-03 17:21:06 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-11-03 17:21:06 (GMT)
commitc71f7ab7db843234cab7e6b75ab2636a0d7e8d67 (patch)
tree7272916f71856ca71e717eec1fe25ebc5c0d5f8e /Tests/CMakeLists.txt
parenta42e3f2bf915c510b43fd0f8c90f4716aab41541 (diff)
downloadCMake-c71f7ab7db843234cab7e6b75ab2636a0d7e8d67.zip
CMake-c71f7ab7db843234cab7e6b75ab2636a0d7e8d67.tar.gz
CMake-c71f7ab7db843234cab7e6b75ab2636a0d7e8d67.tar.bz2
Tests: Avoid MFC test automatically for Watcom WMake builds (#11213)
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r--Tests/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 27018d1..cfc59be 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -1208,6 +1208,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
if(NOT DEFINED CTEST_RUN_MFC)
set(CTEST_RUN_MFC OFF)
+
if(MSVC)
set(CTEST_RUN_MFC ON)
@@ -1234,6 +1235,15 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
set(CTEST_RUN_MFC OFF)
endif()
endif()
+
+ # For the Watcom WMake generator, avoid the MFC test by default.
+ if(CTEST_RUN_MFC)
+ if("${CMAKE_TEST_GENERATOR}" MATCHES "WMake")
+ message(STATUS
+ "using the Watcom WMake generator, avoiding MFC test")
+ set(CTEST_RUN_MFC OFF)
+ endif()
+ endif()
endif()
endif()