Tests: Skip BootstrapTest if testing external CMake

If we are not actually building CMake then we should not run the
`BootstrapTest` (which builds CMake).
This commit is contained in:
Brad King 2017-05-31 10:11:51 -04:00
parent de16ff3e58
commit 52d0983a88

View File

@ -3110,6 +3110,9 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
endif ()
endif ()
if(CMake_TEST_EXTERNAL_CMAKE)
set(CMAKE_SKIP_BOOTSTRAP_TEST 1)
endif()
if("${CMAKE_GENERATOR}" MATCHES Xcode)
set(CMAKE_SKIP_BOOTSTRAP_TEST 1)
endif()