From 52d0983a88a28709ced63dc0a9ad955d75cdbfe8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 31 May 2017 10:11:51 -0400 Subject: Tests: Skip BootstrapTest if testing external CMake If we are not actually building CMake then we should not run the `BootstrapTest` (which builds CMake). --- Tests/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 21fe641..2c05789 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -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() -- cgit v0.12