Skip to content

Commit b3d10fa

Browse files
committed
build: Repair boost vs cmake >= 3.30
Signed-off-by: Larry Gritz <[email protected]>
1 parent 7049aad commit b3d10fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cmake/externalpackages.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ include (FindThreads)
3434

3535
###########################################################################
3636
# Boost setup
37+
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.30")
38+
set (boost_config CONFIG)
39+
endif ()
3740
if (MSVC)
3841
# Disable automatic linking using pragma comment(lib,...) of boost libraries upon including of a header
3942
add_definitions (-DBOOST_ALL_NO_LIB=1)
@@ -65,7 +68,7 @@ if (NOT DEFINED Boost_NO_BOOST_CMAKE)
6568
set (Boost_NO_BOOST_CMAKE ON)
6669
endif ()
6770

68-
checked_find_package (Boost REQUIRED
71+
checked_find_package (Boost ${boost_config} REQUIRED
6972
VERSION_MIN 1.53
7073
COMPONENTS ${Boost_COMPONENTS}
7174
RECOMMEND_MIN 1.66

0 commit comments

Comments
 (0)