Skip to content

Commit db0c68a

Browse files
committed
chore: Simplify build-system replacing FetchContent calls with add_subdirectory
Following 7a70669 ("feat: use a submodule for ninja sources (scikit-build#278)", 2025-03-20), attempting to fetch sources is not required as sources are already expected to be available.
1 parent 020195e commit db0c68a

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
@@ -13,12 +13,7 @@ message(STATUS "")
1313
message(STATUS " RUN_NINJA_TEST : ${RUN_NINJA_TEST}")
1414
message(STATUS "************************************")
1515

16-
include(FetchContent)
17-
FetchContent_Declare(
18-
ninja
19-
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ninja-upstream
20-
)
21-
FetchContent_MakeAvailable(ninja)
16+
add_subdirectory(ninja-upstream)
2217

2318
if(RUN_NINJA_TEST)
2419
add_custom_target(

0 commit comments

Comments
 (0)