Skip to content

Commit b9d2a1a

Browse files
committed
fix: force BUILD_TESTING to inherit RUN_NINJA_TEST value
1 parent 4c3d329 commit b9d2a1a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ jobs:
175175
done
176176
177177
- name: Install SDist
178-
run: .venv/bin/pip install --no-binary=ninja $(ls sdist/*.tar.gz)
178+
run: .venv/bin/pip install -v --no-binary=ninja $(ls sdist/*.tar.gz)
179179

180180
- name: Test installed SDist
181181
run: .venv/bin/pip check && .venv/bin/pytest ./tests

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ message(STATUS "")
2323
message(STATUS " RUN_NINJA_TEST : ${RUN_NINJA_TEST}")
2424
message(STATUS "************************************")
2525

26+
set(BUILD_TESTING ${RUN_NINJA_TEST} CACHE INTERNAL "")
27+
2628
add_subdirectory(ninja-upstream)
2729

2830
if(RUN_NINJA_TEST)

0 commit comments

Comments
 (0)