Skip to content

Commit

Permalink
Use FindBoost module rather than BoostConfig.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Aug 21, 2024
1 parent d2d63e4 commit 223a03c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ if(POLICY CMP0086)
cmake_policy(SET CMP0086 NEW)
endif(POLICY CMP0086)

# Use FindBoost module rather than BoostConfig.cmake (which requires
# Boost 1.70 or later)
if(POLICY CMP0167)
cmake_policy(SET CMP0167 OLD)
endif(POLICY CMP0167)

# C++11 can use the boost version
set(Boost_NO_BOOST_CMAKE ON)
find_package(Boost COMPONENTS system filesystem thread program_options iostreams
Expand Down

0 comments on commit 223a03c

Please sign in to comment.