mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Tests: Isolate RunCMake.FindPkgConfig from caller environment
Avoid interference from `CMAKE_PREFIX_PATH` and friends if they happen to be set in the environment from which the tests are run.
This commit is contained in:
@@ -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(PkgConfigDoesNotExist)
|
||||
|
||||
run_cmake(FindPkgConfig_NO_PKGCONFIG_PATH)
|
||||
|
||||
Reference in New Issue
Block a user