File tree 2 files changed +16
-3
lines changed
2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ project(NinjaPythonDistributions)
5
5
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_MODULE_PATH} )
6
6
7
7
# 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 )
10
9
11
10
message (STATUS "************************************" )
12
11
message (STATUS "Ninja Python Distribution" )
13
12
message (STATUS "" )
14
- message (STATUS " BUILD_VERBOSE : ${BUILD_VERBOSE} " )
15
13
message (STATUS " RUN_NINJA_TEST : ${RUN_NINJA_TEST} " )
16
14
message (STATUS "************************************" )
17
15
@@ -22,5 +20,13 @@ FetchContent_Declare(
22
20
)
23
21
FetchContent_MakeAvailable(ninja)
24
22
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
+
25
31
install (TARGETS ninja COMPONENT python DESTINATION "${SKBUILD_SCRIPTS_DIR} " )
26
32
install (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"
100
100
musllinux-s390x-image = " musllinux_1_1"
101
101
musllinux-armv7l-image = " musllinux_1_2"
102
102
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
+
103
110
[[tool .cibuildwheel .overrides ]]
104
111
select = " *-macos*"
105
112
inherit.environment = " append"
You can’t perform that action at this time.
0 commit comments