mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
Upstream Boost 1.70 and above provide a proper `BoostConfig.cmake` package configuration file. Packages for all major distros now provide it in at least one LTS release. Add a policy to pretend that the `FindBoost` module does not exist so that projects calling `find_package(Boost)` use the upstream package directly. Closes: #19402
8 lines
158 B
CMake
8 lines
158 B
CMake
# Do not set CMP0167.
|
|
set(_FindBoost_testing 1)
|
|
include(FindBoost)
|
|
|
|
if(NOT _FindBoost_included)
|
|
message(FATAL_ERROR "FindBoost.cmake not included")
|
|
endif()
|