mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-01 04:03:24 +03:00
Tests: find_file restore PATH env variable after test runs
This commit is contained in:
1 parent
4cd039b78a
commit
ff29c92df6
1 file changed
+2
@@ -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