From db0c68a4f0f1c4c60dc7737ff1f089d29f1445c3 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Thu, 19 Jun 2025 15:53:17 -0400 Subject: [PATCH] chore: Simplify build-system replacing FetchContent calls with add_subdirectory Following 7a70669 ("feat: use a submodule for ninja sources (#278)", 2025-03-20), attempting to fetch sources is not required as sources are already expected to be available. --- CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a1cd1f..c03b7b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,12 +13,7 @@ message(STATUS "") message(STATUS " RUN_NINJA_TEST : ${RUN_NINJA_TEST}") message(STATUS "************************************") -include(FetchContent) -FetchContent_Declare( - ninja - SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ninja-upstream -) -FetchContent_MakeAvailable(ninja) +add_subdirectory(ninja-upstream) if(RUN_NINJA_TEST) add_custom_target(