From 32bbc9fc82415295c4d79fae8db7e4f15965941e Mon Sep 17 00:00:00 2001 From: Sasha Rahlin Date: Tue, 3 Dec 2024 17:01:03 -0600 Subject: [PATCH] Avoid errors with Boost in CMake 3.31+ --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index acaec676..8a420008 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.12) # Don't warn about removal of FindBoost in cmake 3.30+ -if(POLICY CMP0167) +if(CMAKE_VERSION VERSION_LESS "3.31" AND POLICY CMP0167) cmake_policy(SET CMP0167 NEW) endif()