From 223a03c634edfbd4dad8ba96bcd09f742d6b2dc9 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Wed, 21 Aug 2024 09:21:13 -0700 Subject: [PATCH] Use FindBoost module rather than BoostConfig.cmake --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac9707a3..03260560 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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