cmake version check for policy setting.

This commit is contained in:
2026-01-25 14:43:49 +01:00
parent b3e4d247f0
commit 3c02c6073a

View File

@@ -2,7 +2,9 @@
cmake_minimum_required(VERSION 3.17)
# cmake: use BoostConfig.cmake instead of FindBoost
if (CMAKE_VERSION GREATER_EQUAL "3.3")
cmake_policy(SET CMP0167 NEW)
endif ()
project(musrfit VERSION 1.9.11 LANGUAGES C CXX)