We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a21581 commit 6d04f12Copy full SHA for 6d04f12
build/cmake/BoostMacros.cmake
@@ -17,6 +17,17 @@
17
# under the License.
18
#
19
20
+# CMake 4.0+ removed the FindBoost module (CMP0167). Use OLD behavior to
21
+# preserve compatibility with existing ${Boost_LIBRARIES} usage.
22
+if(POLICY CMP0167)
23
+ cmake_policy(SET CMP0167 OLD)
24
+endif()
25
+
26
+# Force using FindBoost instead of Boost's own BoostConfig.cmake.
27
+# BoostConfig.cmake does not populate ${Boost_LIBRARIES} the same way,
28
+# which causes linking failures on Windows.
29
+set(Boost_NO_BOOST_CMAKE ON)
30
31
set(BOOST_MINREV 1.56)
32
33
macro(REQUIRE_BOOST_HEADERS)
0 commit comments