mirror of
https://github.com/reactos/CMake.git
synced 2024-12-05 02:06:34 +00:00
Tests: find_file restore PATH env variable after test runs
This commit is contained in:
parent
4cd039b78a
commit
ff29c92df6
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user