mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
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
This commit is contained in:
1 parent
11c25ae6ae
commit
11ea24e590
1 file changed
+1
@@ -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})
|
||||
|
||||
Reference in new issue
Block a user