1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Tests: Unset the PATH environment variable more explicitly where needed

Previously we relied on setting an environment variable to empty to
unset it on Windows.
This commit is contained in:
Brad King
2025-10-06 18:19:43 -04:00
parent 0181fb4cc5
commit a878d1c490
2 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
enable_language(C)
set(ENV{PATH} "")
unset(ENV{PATH})
enable_language(ASM)

View File

@@ -9,8 +9,8 @@ set(ENV{CMAKE_INCLUDE_PATH} )
set(ENV{CMAKE_PREFIX_PATH} )
set(ENV{CMAKE_FRAMEWORK_PATH} )
set(ENV{PATH} )
set(ENV{INCLUDE} )
unset(ENV{PATH})
unset(ENV{INCLUDE})
set(CMAKE_SYSTEM_INCLUDE_PATH )
set(CMAKE_SYSTEM_PREFIX_PATH )