diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c095d2e..2c01d381 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.11 LANGUAGES C CXX)