diff options
author | Brad King <brad.king@kitware.com> | 2024-05-06 13:25:40 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-05-06 13:25:49 (GMT) |
commit | 557908ecfaceaded8e7c79f3e222b916b4588463 (patch) | |
tree | 9f9378a54125bbb1c518a22c6571159ce70b6935 /Modules | |
parent | de8df1da1759ce7ada633773ad4cefb1902d6886 (diff) | |
parent | e0355c4ea9c099e41c0c21ca42be82c09ff28292 (diff) | |
download | CMake-557908ecfaceaded8e7c79f3e222b916b4588463.zip CMake-557908ecfaceaded8e7c79f3e222b916b4588463.tar.gz CMake-557908ecfaceaded8e7c79f3e222b916b4588463.tar.bz2 |
Merge topic 'FindBoost-remove'
e0355c4ea9 FindBoost: Add policy to remove this module
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Christoph GrĂ¼ninger <foss@grueninger.de>
Merge-request: !9488
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindBoost.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake index df71350..1de476a 100644 --- a/Modules/FindBoost.cmake +++ b/Modules/FindBoost.cmake @@ -5,6 +5,11 @@ FindBoost --------- +.. versionchanged:: 3.30 + This module is available only if policy :policy:`CMP0167` is not set to + ``NEW``. Port projects to upstream Boost's ``BoostConfig.cmake`` package + configuration file, for which ``find_package(Boost)`` now searches. + Find Boost include dirs and libraries Use this module by invoking :command:`find_package` with the form: @@ -379,6 +384,16 @@ the Boost CMake package configuration for details on what it provides. Set ``Boost_NO_BOOST_CMAKE`` to ``ON``, to disable the search for boost-cmake. #]=======================================================================] +cmake_policy(GET CMP0167 _FindBoost_CMP0167) +if(_FindBoost_CMP0167 STREQUAL "NEW") + message(FATAL_ERROR "The FindBoost module has been removed by policy CMP0167.") +endif() + +if(_FindBoost_testing) + set(_FindBoost_included TRUE) + return() +endif() + # The FPHSA helper provides standard way of reporting final search results to # the user including the version and component checks. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) |