From 67bafeee6664276c61c81cdbd4998acb1dc13162 Mon Sep 17 00:00:00 2001 From: 0xloem <0xloem@gmail.com> Date: Sat, 23 Jan 2021 14:07:39 -0500 Subject: [PATCH] add check for maximum boost version --- CMakeModules/Boost/BoostConfig.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeModules/Boost/BoostConfig.cmake b/CMakeModules/Boost/BoostConfig.cmake index a5e01f2d5..bbd77eb75 100644 --- a/CMakeModules/Boost/BoostConfig.cmake +++ b/CMakeModules/Boost/BoostConfig.cmake @@ -4,6 +4,9 @@ MESSAGE(STATUS "Using custom FindBoost config") find_package(Boost 1.58 REQUIRED COMPONENTS ${Boost_FIND_COMPONENTS}) +IF("${Boost_VERSION}" VERSION_GREATER_EQUAL "1.70") + MESSAGE(FATAL_ERROR "Boost version must be at least 1.58 and at most 1.69 .") +ENDIF() # Inject `pthread` dependency to Boost if needed if (UNIX AND NOT CYGWIN)