Skip to content

Commit

Permalink
Set CMake Policy CMP0167 to OLD.
Browse files Browse the repository at this point in the history
NEW disables Cmake's FindBoost in favor of Boost's built-in
BoostConfig.cmake introduced in Boost 1.70.
  • Loading branch information
jralls committed Sep 26, 2024
1 parent ee80586 commit e0f26f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0f26f6

Please sign in to comment.