Tests: Avoid MFC test automatically for Watcom WMake builds (#11213)

This commit is contained in:
David Cole 2011-11-03 13:21:06 -04:00
parent a42e3f2bf9
commit c71f7ab7db
1 changed files with 10 additions and 0 deletions

View File

@ -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()