From 638dbbc007fd85bd23113369e8b4b31045f2b30a Mon Sep 17 00:00:00 2001 From: "Jeremy W. Murphy" Date: Fri, 3 Jul 2026 10:52:14 +0900 Subject: [PATCH] Require CMake 3.30 and used CONFIG mode of find_package --- CMakeLists.txt | 7 ++----- test/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index de3fa8f43..f97ce712d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,17 +68,14 @@ target_compile_definitions(boost_graph ) else() - # When we're worked on by Boost.Graph developers. - # Using 3.29 for now until I figure out the differences with the new Boost - # config cmake introduced in 3.30. - cmake_minimum_required(VERSION 3.29) + cmake_minimum_required(VERSION 3.30) project(boost_graph VERSION 1.0.0 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 14) # TODO: The super-project version is set explicitly just like this, but we # should parse it from boost/version.hpp. - find_package(Boost 1.90.0 REQUIRED COMPONENTS regex) + find_package(Boost 1.90.0 CONFIG REQUIRED COMPONENTS regex) add_library(boost_graph) target_sources(boost_graph PUBLIC diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 75ef2dce6..2021afde2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,4 @@ -find_package(Boost 1.90.0 REQUIRED COMPONENTS filesystem serialization) +find_package(Boost 1.90.0 CONFIG REQUIRED COMPONENTS filesystem serialization) # These use Boost.Core's lightweight_test, one main() function per file.