summaryrefslogtreecommitdiff
path: root/devel/cmake/files/patch-Modules_FindBoost.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'devel/cmake/files/patch-Modules_FindBoost.cmake')
-rw-r--r--devel/cmake/files/patch-Modules_FindBoost.cmake12
1 files changed, 11 insertions, 1 deletions
diff --git a/devel/cmake/files/patch-Modules_FindBoost.cmake b/devel/cmake/files/patch-Modules_FindBoost.cmake
index 728e2ebb2279..0070968820da 100644
--- a/devel/cmake/files/patch-Modules_FindBoost.cmake
+++ b/devel/cmake/files/patch-Modules_FindBoost.cmake
@@ -9,7 +9,17 @@
Boost_NO_SYSTEM_PATHS - Set to ON to disable searching in locations not
specified by these hint variables. Default is OFF.
Boost_ADDITIONAL_VERSIONS
-@@ -1739,10 +1741,10 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
+@@ -242,6 +244,9 @@ Set Boost_NO_BOOST_CMAKE to ON to disable the search f
+ cmake_policy(PUSH)
+ cmake_policy(SET CMP0057 NEW) # if IN_LIST
+
++# https://gitlab.kitware.com/cmake/cmake/issues/18865
++set(Boost_NO_BOOST_CMAKE ON CACHE BOOL "Disable the search for boost-cmake")
++
+ #-------------------------------------------------------------------------------
+ # Before we go searching, check whether boost-cmake is available, unless the
+ # user specifically asked NOT to search for boost-cmake.
+@@ -1739,10 +1744,10 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
# Handle Python version suffixes
unset(COMPONENT_PYTHON_VERSION_MAJOR)
unset(COMPONENT_PYTHON_VERSION_MINOR)