gnucash stable: Set CMake Policy CMP0167 to OLD.
John Ralls
jralls at code.gnucash.org
Thu Sep 26 13:22:46 EDT 2024
Updated via https://github.com/Gnucash/gnucash/commit/e0f26f60 (commit)
from https://github.com/Gnucash/gnucash/commit/ee805861 (commit)
commit e0f26f60c4161f986b90487c0b68158d687ca786
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Sep 26 10:21:07 2024 -0700
Set CMake Policy CMP0167 to OLD.
NEW disables Cmake's FindBoost in favor of Boost's built-in
BoostConfig.cmake introduced in Boost 1.70.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 88e0cdbfb3..4a362be9aa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,11 @@ cmake_minimum_required (VERSION 3.14.5)
if (POLICY CMP0094)
cmake_policy(SET CMP0094 NEW)
endif()
+# CMake 3.30+ Use Boost's builtin BoostConfig.cmake instead of FindBoost, the latter of which is removed. Stting this policy to OLD temporarily restores it. BoostConfig.cmake was introduced in Boost 1.70.
+# A fair number of distros are still shipping Boost 1.69 in "legacy" versions so make it OLD for the 5.x series and NEW for 6.x.
+if (POLICY CMP0167)
+ cmake_policy(SET CMP0167 OLD)
+endif()
project (gnucash
VERSION 5.8
Summary of changes:
CMakeLists.txt | 5 +++++
1 file changed, 5 insertions(+)
More information about the gnucash-changes
mailing list