summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-05-06 13:25:40 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-05-06 13:25:49 (GMT)
commit557908ecfaceaded8e7c79f3e222b916b4588463 (patch)
tree9f9378a54125bbb1c518a22c6571159ce70b6935 /Modules
parentde8df1da1759ce7ada633773ad4cefb1902d6886 (diff)
parente0355c4ea9c099e41c0c21ca42be82c09ff28292 (diff)
downloadCMake-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.cmake15
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)