summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-08-07 14:51:48 (GMT)
committerBrad King <brad.king@kitware.com>2020-08-07 14:51:48 (GMT)
commit56510b7d852c73c581a3bac1ed491188b4da9c4c (patch)
tree902d280758485d85229401cbc5b955d445023af9
parenteffc9a10320e031d556010efd9b6fc823c7f5fe1 (diff)
parent4c939b0d39c21b0a7f30ce64d82e87f75b8babec (diff)
downloadCMake-56510b7d852c73c581a3bac1ed491188b4da9c4c.zip
CMake-56510b7d852c73c581a3bac1ed491188b4da9c4c.tar.gz
CMake-56510b7d852c73c581a3bac1ed491188b4da9c4c.tar.bz2
Merge branch 'backport-test-FindPkgConfig-isolate-env' into release-3.17
Merge-request: !5108
-rw-r--r--Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake b/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake
index b77bb54..7b479f1 100644
--- a/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake
+++ b/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake
@@ -1,5 +1,10 @@
include(RunCMake)
+# Isolate test cases from caller's environment.
+set(ENV{CMAKE_PREFIX_PATH} "")
+set(ENV{CMAKE_APPBUNDLE_PATH} "")
+set(ENV{CMAKE_FRAMEWORK_PATH} "")
+
run_cmake(FindPkgConfig_NO_PKGCONFIG_PATH)
run_cmake(FindPkgConfig_PKGCONFIG_PATH)
run_cmake(FindPkgConfig_PKGCONFIG_PATH_NO_CMAKE_PATH)