Skip to content

Commit

Permalink
build: Repair boost vs cmake >= 3.30
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed Aug 1, 2024
1 parent 7049aad commit b3d10fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cmake/externalpackages.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ include (FindThreads)

###########################################################################
# Boost setup
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.30")
set (boost_config CONFIG)
endif ()
if (MSVC)
# Disable automatic linking using pragma comment(lib,...) of boost libraries upon including of a header
add_definitions (-DBOOST_ALL_NO_LIB=1)
Expand Down Expand Up @@ -65,7 +68,7 @@ if (NOT DEFINED Boost_NO_BOOST_CMAKE)
set (Boost_NO_BOOST_CMAKE ON)
endif ()

checked_find_package (Boost REQUIRED
checked_find_package (Boost ${boost_config} REQUIRED
VERSION_MIN 1.53
COMPONENTS ${Boost_COMPONENTS}
RECOMMEND_MIN 1.66
Expand Down

0 comments on commit b3d10fa

Please sign in to comment.