aboutsummaryrefslogtreecommitdiff
path: root/devel/cmake-core/files/patch-Modules_FindBoost.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'devel/cmake-core/files/patch-Modules_FindBoost.cmake')
-rw-r--r--devel/cmake-core/files/patch-Modules_FindBoost.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/devel/cmake-core/files/patch-Modules_FindBoost.cmake b/devel/cmake-core/files/patch-Modules_FindBoost.cmake
index ffff3ae66b4c..548cc7f4268b 100644
--- a/devel/cmake-core/files/patch-Modules_FindBoost.cmake
+++ b/devel/cmake-core/files/patch-Modules_FindBoost.cmake
@@ -20,6 +20,15 @@
#-------------------------------------------------------------------------------
# Before we go searching, check whether a boost cmake package is available, unless
# the user specifically asked NOT to search for one.
+@@ -2170,7 +2177,7 @@ if(Boost_VERSION_STRING AND Boost_FIND_COMPONENTS)
+ # On versions < 1.35, remove the System library from the considered list
+ # since it wasn't added until 1.35.
+ if(Boost_VERSION_STRING AND Boost_FIND_COMPONENTS)
+- if(Boost_VERSION_STRING VERSION_LESS 1.35.0)
++ if(Boost_VERSION_STRING VERSION_LESS 1.35.0 OR Boost_VERSION_STRING VERSION_GREATER_EQUAL 1.71.0)
+ list(REMOVE_ITEM Boost_FIND_COMPONENTS system)
+ endif()
+ endif()
@@ -2196,10 +2202,10 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
# Handle Python version suffixes
unset(COMPONENT_PYTHON_VERSION_MAJOR)