diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ebb0c8b..ca311e69 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.17) # cmake: use BoostConfig.cmake instead of FindBoost -cmake_policy(SET CMP0167 NEW) +if (CMAKE_VERSION GREATER_EQUAL "3.3") + cmake_policy(SET CMP0167 NEW) +endif () project(musrfit VERSION 1.9.10 LANGUAGES C CXX)