diff options
author | Brad King <brad.king@kitware.com> | 2022-12-07 13:21:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-12-07 13:21:39 (GMT) |
commit | 8b9c9e7e27ecb1414498c668d7c83352fcaf7e39 (patch) | |
tree | e53bf366475c4148cac155ababcb7c17c6b2648c | |
parent | 127fa54808acd80b658409758533c2522f6a1c19 (diff) | |
download | CMake-8b9c9e7e27ecb1414498c668d7c83352fcaf7e39.zip CMake-8b9c9e7e27ecb1414498c668d7c83352fcaf7e39.tar.gz CMake-8b9c9e7e27ecb1414498c668d7c83352fcaf7e39.tar.bz2 |
Tests: Teach RunCMake.FindBoost to avoid finding an external Boost
The `ConfigModeNotFound` case does not expect to find a Boost.
Avoid accidentally finding one on the host.
-rw-r--r-- | Tests/RunCMake/FindBoost/CommonNotFound.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindBoost/CommonNotFound.cmake b/Tests/RunCMake/FindBoost/CommonNotFound.cmake index 864a549..b146d3d 100644 --- a/Tests/RunCMake/FindBoost/CommonNotFound.cmake +++ b/Tests/RunCMake/FindBoost/CommonNotFound.cmake @@ -1,2 +1,6 @@ +set(CMAKE_FIND_USE_CMAKE_PATH OFF) +set(CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH OFF) +set(CMAKE_FIND_USE_CMAKE_SYSTEM_PATH OFF) +set(CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH OFF) # Make sure to use the module mode signature here to not bypass FindBoost find_package(Boost 1.80 COMPONENTS timer foobar) |