mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-09 23:59:53 -05:00
Tests: find_file restore PATH env variable after test runs
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
set(ENV_PATH "$ENV{PATH}")
|
||||
set(ENV{PATH} "")
|
||||
foreach(path "/does_not_exist" "/include" "")
|
||||
unset(PrefixInPATH_File CACHE)
|
||||
@@ -15,3 +16,4 @@ foreach(path "/does_not_exist" "/include" "")
|
||||
message(STATUS "PrefixInPATH_File='${PrefixInPATH_File}'")
|
||||
endforeach()
|
||||
set(CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH ON)
|
||||
set(ENV{PATH} "${ENV_PATH}")
|
||||
|
||||
Reference in New Issue
Block a user