summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_package/FromPATHEnv.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/find_package/FromPATHEnv.cmake')
-rw-r--r--Tests/RunCMake/find_package/FromPATHEnv.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_package/FromPATHEnv.cmake b/Tests/RunCMake/find_package/FromPATHEnv.cmake
index 4822b13..ceb79b6 100644
--- a/Tests/RunCMake/find_package/FromPATHEnv.cmake
+++ b/Tests/RunCMake/find_package/FromPATHEnv.cmake
@@ -1,4 +1,10 @@
set(ENV_PATH "$ENV{PATH}")
+
+set(CMAKE_FIND_DEBUG_MODE ON)
+set(ENV{PATH} "${CMAKE_CURRENT_SOURCE_DIR}/PackageRoot")
+find_package(Resolved QUIET)
+set(CMAKE_FIND_DEBUG_MODE OFF)
+
foreach(path "/does_not_exist" "/PackageRoot" "")
unset(Resolved_FOUND CACHE)
set(Resolved_DIR "")