Skip to content

Commit

Permalink
Added check for Boost_NO_BOOST_CMAKE, ignore if already set
Browse files Browse the repository at this point in the history
Signed-off-by: Mikael Sundell <[email protected]>
  • Loading branch information
mikaelsundell committed Aug 24, 2023
1 parent 56c734a commit 411a34a
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 @@ -61,7 +61,10 @@ message (STATUS "Boost_COMPONENTS = ${Boost_COMPONENTS}")
# cmake output (e.g. boost 1.70.0, cmake <= 3.14). Specifically it fails
# to set the expected variables printed below. So until that's fixed
# force FindBoost.cmake to use the original brute force path.
set (Boost_NO_BOOST_CMAKE ON)
if (NOT DEFINED Boost_NO_BOOST_CMAKE)
set (Boost_NO_BOOST_CMAKE ON)
endif ()

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

0 comments on commit 411a34a

Please sign in to comment.