From c71f7ab7db843234cab7e6b75ab2636a0d7e8d67 Mon Sep 17 00:00:00 2001 From: David Cole Date: Thu, 3 Nov 2011 13:21:06 -0400 Subject: [PATCH] Tests: Avoid MFC test automatically for Watcom WMake builds (#11213) --- Tests/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 27018d1b1..cfc59be99 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()