summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-03-08 22:37:05 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-03-08 22:38:07 (GMT)
commit11ea24e59044770bc437b318c6a4ffed8a9b6a04 (patch)
treec8d624d4de3cec14f7591727d0880a8933e25771 /Tests/RunCMake
parent11c25ae6aeeec94bcaad471a76ed0d76d30d8d8d (diff)
downloadCMake-11ea24e59044770bc437b318c6a4ffed8a9b6a04.zip
CMake-11ea24e59044770bc437b318c6a4ffed8a9b6a04.tar.gz
CMake-11ea24e59044770bc437b318c6a4ffed8a9b6a04.tar.bz2
Tests: Disable CMAKE_SYSTEM_PROGRAM_PATH in IgnorePrefixPath test
Some systems set CMAKE_SYSTEM_PROGRAM_PATH, which pollutes the environment for this test. Erase it before executing the test to get a clean environment. Fixes: #23300
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/find_program/IgnorePrefixPath.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_program/IgnorePrefixPath.cmake b/Tests/RunCMake/find_program/IgnorePrefixPath.cmake
index 5f0dba9..b055af0 100644
--- a/Tests/RunCMake/find_program/IgnorePrefixPath.cmake
+++ b/Tests/RunCMake/find_program/IgnorePrefixPath.cmake
@@ -5,6 +5,7 @@ function(assert_eq var value)
endfunction()
set(CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH FALSE)
+set(CMAKE_SYSTEM_PROGRAM_PATH)
set(CMAKE_PREFIX_PATH ${CMAKE_SOURCE_DIR}/Prefix)
set(_old_CMAKE_SYSTEM_PREFIX_PATH ${CMAKE_SYSTEM_PREFIX_PATH})