From af3c8832fe3c7f811a1226b542f9e7f05e3462de Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Sun, 25 Jan 2026 07:26:25 +0100 Subject: [PATCH] set cmake Boost find policy. --- CMakeLists.txt | 3 +++ src/external/Nonlocal/prog/CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a3a37bd..5ebb0c8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,9 @@ # - musrfit cmake_minimum_required(VERSION 3.17) +# cmake: use BoostConfig.cmake instead of FindBoost +cmake_policy(SET CMP0167 NEW) + project(musrfit VERSION 1.9.10 LANGUAGES C CXX) #--- musrfit specific options ------------------------------------------------- diff --git a/src/external/Nonlocal/prog/CMakeLists.txt b/src/external/Nonlocal/prog/CMakeLists.txt index 1c36c0d0..b54e4225 100644 --- a/src/external/Nonlocal/prog/CMakeLists.txt +++ b/src/external/Nonlocal/prog/CMakeLists.txt @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.15) +# cmake: use BoostConfig.cmake instead of FindBoost +cmake_policy(SET CMP0167 NEW) + project(dump_nonlocal_field VERSION 1.0.0 LANGUAGES C CXX) #--- check for git ------------------------------------------------------------