summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-06-12 21:56:53 (GMT)
committerBrad King <brad.king@kitware.com>2023-06-12 21:56:53 (GMT)
commit15d9d591bd8560284ec8b82b022ba0135ae58f82 (patch)
treeea54ebc2b55b961c7f531aa21251ceae89ed0fc3
parent0c2610bd300218165e72524b87e998fd06d86ef5 (diff)
downloadCMake-15d9d591bd8560284ec8b82b022ba0135ae58f82.zip
CMake-15d9d591bd8560284ec8b82b022ba0135ae58f82.tar.gz
CMake-15d9d591bd8560284ec8b82b022ba0135ae58f82.tar.bz2
Tests: Require git to enable RunCMake.CMP0150 test
The test added by commit 550f63447d (ExternalProject/FetchContent: Support relative remote URLs, 2023-04-21, v3.27.0-rc1~156^2) covers Git-specific functionality, and requires a `git` tool to be available.
-rw-r--r--Tests/RunCMake/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index d4f3341..f089a96 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -160,7 +160,10 @@ endif()
add_RunCMake_test(CMP0132)
add_RunCMake_test(CMP0135)
add_RunCMake_test(CMP0139)
-add_RunCMake_test(CMP0150)
+
+if(GIT_EXECUTABLE)
+ add_RunCMake_test(CMP0150)
+endif()
# The test for Policy 65 requires the use of the
# CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS variable, which both the VS and Xcode