summaryrefslogtreecommitdiff
path: root/devel/ikos/files/patch-cmake_FindBoost.cmake
blob: 75f2d9c03187ad1ff6d2373d2a8edd862ba27afa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- cmake/FindBoost.cmake.orig	2024-12-31 23:34:34 UTC
+++ cmake/FindBoost.cmake
@@ -170,6 +170,9 @@
 #
 # Set Boost_NO_BOOST_CMAKE to ON to disable the search for boost-cmake.
 
+# 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.
@@ -1000,7 +1003,7 @@ if(Boost_VERSION 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 AND Boost_FIND_COMPONENTS)
-   if(Boost_VERSION LESS 103500)
+   if(Boost_VERSION LESS 103500 OR Boost_VERSION GREATER 107100)
      list(REMOVE_ITEM Boost_FIND_COMPONENTS system)
    endif()
 endif()