File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ project(NinjaPythonDistributions)
55set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_MODULE_PATH} )
66
77# Options
8- option (BUILD_VERBOSE "Display additional information while building (e.g download progress, ...)" OFF )
9- option (RUN_NINJA_TEST "Run Ninja test suite" ON )
8+ option (RUN_NINJA_TEST "Run Ninja test suite" OFF )
109
1110message (STATUS "************************************" )
1211message (STATUS "Ninja Python Distribution" )
1312message (STATUS "" )
14- message (STATUS " BUILD_VERBOSE : ${BUILD_VERBOSE} " )
1513message (STATUS " RUN_NINJA_TEST : ${RUN_NINJA_TEST} " )
1614message (STATUS "************************************" )
1715
@@ -22,5 +20,13 @@ FetchContent_Declare(
2220)
2321FetchContent_MakeAvailable(ninja)
2422
23+ if (RUN_NINJA_TEST)
24+ add_custom_target (
25+ run_ninja_test ALL "$<TARGET_FILE:ninja_test>"
26+ DEPENDS ninja_test
27+ WORKING_DIRECTORY "$<TARGET_FILE_DIR:ninja_test>"
28+ )
29+ endif ()
30+
2531install (TARGETS ninja COMPONENT python DESTINATION "${SKBUILD_SCRIPTS_DIR} " )
2632install (FILES "${ninja_SOURCE_DIR} /misc/ninja_syntax.py" COMPONENT python DESTINATION ninja)
Original file line number Diff line number Diff line change @@ -100,6 +100,13 @@ musllinux-ppc64le-image = "musllinux_1_1"
100100musllinux-s390x-image = " musllinux_1_1"
101101musllinux-armv7l-image = " musllinux_1_2"
102102
103+ [tool .cibuildwheel .config-settings ]
104+ "cmake.define.RUN_NINJA_TEST" = " ON"
105+
106+ [[tool .cibuildwheel .overrides ]]
107+ select = [" *-win_arm64" ,]
108+ config-settings."cmake.define.RUN_NINJA_TEST" = " OFF"
109+
103110[[tool .cibuildwheel .overrides ]]
104111select = " *-macos*"
105112inherit.environment = " append"
You can’t perform that action at this time.
0 commit comments