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 7049aad commit b3d10faCopy full SHA for b3d10fa
src/cmake/externalpackages.cmake
@@ -34,6 +34,9 @@ include (FindThreads)
34
35
###########################################################################
36
# Boost setup
37
+if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.30")
38
+ set (boost_config CONFIG)
39
+endif ()
40
if (MSVC)
41
# Disable automatic linking using pragma comment(lib,...) of boost libraries upon including of a header
42
add_definitions (-DBOOST_ALL_NO_LIB=1)
@@ -65,7 +68,7 @@ if (NOT DEFINED Boost_NO_BOOST_CMAKE)
65
68
set (Boost_NO_BOOST_CMAKE ON)
66
69
endif ()
67
70
-checked_find_package (Boost REQUIRED
71
+checked_find_package (Boost ${boost_config} REQUIRED
72
VERSION_MIN 1.53
73
COMPONENTS ${Boost_COMPONENTS}
74
RECOMMEND_MIN 1.66
0 commit comments