mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
The `ConfigModeNotFound` case does not expect to find a Boost. Avoid accidentally finding one on the host.
7 lines
295 B
CMake
7 lines
295 B
CMake
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)
|