Skip to content

Commit 39d391f

Browse files
authored
chore: Simplify build-system replacing FetchContent calls with add_subdirectory (#304)
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.
1 parent 1054fcc commit 39d391f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ message(STATUS "")
2323
message(STATUS " RUN_NINJA_TEST : ${RUN_NINJA_TEST}")
2424
message(STATUS "************************************")
2525

26-
include(FetchContent)
27-
FetchContent_Declare(
28-
ninja
29-
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ninja-upstream
30-
)
31-
FetchContent_MakeAvailable(ninja)
26+
add_subdirectory(ninja-upstream)
3227

3328
if(RUN_NINJA_TEST)
3429
add_custom_target(

0 commit comments

Comments
 (0)