From b7112428d41e5bb1b93d3519acbbd2a4538ef714 Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 27 Mar 2026 05:22:29 +0900 Subject: [PATCH 1/5] build(cmake): require CMake 3.28 for modern FetchContent usage --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cf688c9..6808ec9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.28) project(ArgumentManagerProject VERSION 1.0 LANGUAGES CXX) From 5392cd5de38a703f148bb831598d8f08ef873443 Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 27 Mar 2026 05:24:13 +0900 Subject: [PATCH 2/5] build(deps): migrate nlohmann_json fetch flow to MakeAvailable --- cmake/FetchNlohmannJson.cmake | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmake/FetchNlohmannJson.cmake b/cmake/FetchNlohmannJson.cmake index 850fd43..45f94a6 100644 --- a/cmake/FetchNlohmannJson.cmake +++ b/cmake/FetchNlohmannJson.cmake @@ -4,10 +4,7 @@ FetchContent_Declare( json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz DOWNLOAD_EXTRACT_TIMESTAMP FALSE + EXCLUDE_FROM_ALL ) -FetchContent_GetProperties(json) -if(NOT json_POPULATED) - FetchContent_Populate(json) - add_subdirectory(${json_SOURCE_DIR} ${json_BINARY_DIR} EXCLUDE_FROM_ALL) -endif() +FetchContent_MakeAvailable(json) From 0b65dc619a2edeca11a44b46a6d659ee0bd21310 Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 27 Mar 2026 05:24:24 +0900 Subject: [PATCH 3/5] build(deps): migrate cpp-httplib fetch flow to MakeAvailable --- cmake/httpLib.cmake | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmake/httpLib.cmake b/cmake/httpLib.cmake index f799356..0ba0495 100644 --- a/cmake/httpLib.cmake +++ b/cmake/httpLib.cmake @@ -4,10 +4,7 @@ FetchContent_Declare( cpp_httplib GIT_REPOSITORY https://github.com/yhirose/cpp-httplib.git GIT_TAG v0.14.3 + EXCLUDE_FROM_ALL ) -FetchContent_GetProperties(cpp_httplib) -if(NOT cpp_httplib_POPULATED) - FetchContent_Populate(cpp_httplib) - add_subdirectory(${cpp_httplib_SOURCE_DIR} ${cpp_httplib_BINARY_DIR} EXCLUDE_FROM_ALL) -endif() +FetchContent_MakeAvailable(cpp_httplib) From 978f19d3da1f1eac4b0f2b771e6ab064c192119e Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 27 Mar 2026 05:24:31 +0900 Subject: [PATCH 4/5] build(deps): migrate coretrace logger fetch flow to MakeAvailable --- cmake/logger/coretraceLog.cmake | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmake/logger/coretraceLog.cmake b/cmake/logger/coretraceLog.cmake index f0d1b91..9425d74 100644 --- a/cmake/logger/coretraceLog.cmake +++ b/cmake/logger/coretraceLog.cmake @@ -6,9 +6,6 @@ include(FetchContent) FetchContent_Declare(coretrace-logger GIT_REPOSITORY https://github.com/CoreTrace/coretrace-log.git GIT_TAG main + EXCLUDE_FROM_ALL ) -FetchContent_GetProperties(coretrace-logger) -if(NOT coretrace-logger_POPULATED) - FetchContent_Populate(coretrace-logger) - add_subdirectory(${coretrace-logger_SOURCE_DIR} ${coretrace-logger_BINARY_DIR} EXCLUDE_FROM_ALL) -endif() +FetchContent_MakeAvailable(coretrace-logger) From 9ecc49b174b8157ad67064c44b689d548c343b4a Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 27 Mar 2026 05:24:40 +0900 Subject: [PATCH 5/5] build(deps): migrate stack analyzer fetch flow to MakeAvailable --- cmake/stackUsageAnalyzer.cmake | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmake/stackUsageAnalyzer.cmake b/cmake/stackUsageAnalyzer.cmake index 48c703f..0b27429 100644 --- a/cmake/stackUsageAnalyzer.cmake +++ b/cmake/stackUsageAnalyzer.cmake @@ -4,13 +4,10 @@ FetchContent_Declare( stack_analyzer GIT_REPOSITORY https://github.com/CoreTrace/coretrace-stack-analyzer.git GIT_TAG v0.17.0 + EXCLUDE_FROM_ALL ) -FetchContent_GetProperties(stack_analyzer) -if(NOT stack_analyzer_POPULATED) - FetchContent_Populate(stack_analyzer) - add_subdirectory(${stack_analyzer_SOURCE_DIR} ${stack_analyzer_BINARY_DIR} EXCLUDE_FROM_ALL) -endif() +FetchContent_MakeAvailable(stack_analyzer) # Copy upstream default models into config/models/ so that tool-config.json # can reference them with paths relative to the config directory, without