diff options
author | Brad King <brad.king@kitware.com> | 2022-02-10 19:42:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-02-10 21:30:04 (GMT) |
commit | 596e18540988a7c6a426c5997d0008444773fc02 (patch) | |
tree | 30887388b2949967b235d11ae7aa043a2a2747c8 /Tests/RunCMake/find_package/FromPATHEnv.cmake | |
parent | 2f435275743a345b8bbfe7de60796a1423ce92fc (diff) | |
download | CMake-596e18540988a7c6a426c5997d0008444773fc02.zip CMake-596e18540988a7c6a426c5997d0008444773fc02.tar.gz CMake-596e18540988a7c6a426c5997d0008444773fc02.tar.bz2 |
find_package: Improve formatting of --debug-find output
Also spell out more complete content in the test's expect output.
Diffstat (limited to 'Tests/RunCMake/find_package/FromPATHEnv.cmake')
-rw-r--r-- | Tests/RunCMake/find_package/FromPATHEnv.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_package/FromPATHEnv.cmake b/Tests/RunCMake/find_package/FromPATHEnv.cmake index ceb79b6..9158d4b 100644 --- a/Tests/RunCMake/find_package/FromPATHEnv.cmake +++ b/Tests/RunCMake/find_package/FromPATHEnv.cmake @@ -1,4 +1,7 @@ set(ENV_PATH "$ENV{PATH}") +set(ENV_CMAKE_PREFIX_PATH "$ENV{CMAKE_PREFIX_PATH}") + +set(ENV{CMAKE_PREFIX_PATH} "") set(CMAKE_FIND_DEBUG_MODE ON) set(ENV{PATH} "${CMAKE_CURRENT_SOURCE_DIR}/PackageRoot") @@ -30,4 +33,6 @@ foreach(path "/does_not_exist" "/PackageRoot" "") find_package(Resolved NO_SYSTEM_ENVIRONMENT_PATH QUIET) message(STATUS "Resolved_FOUND='${Resolved_FOUND}'") endforeach() + +set(ENV{CMAKE_PREFIX_PATH} "${ENV_CMAKE_PREFIX_PATH}") set(ENV{PATH} "${ENV_PATH}") |