Skip to content

Commit 8c01e5a

Browse files
committed
fix: force BUILD_TESTING to inherit RUN_NINJA_TEST value
1 parent 852de93 commit 8c01e5a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ jobs:
185185
done
186186
187187
- name: Install SDist
188-
run: .venv/bin/pip install --no-binary=ninja $(ls sdist/*.tar.gz)
188+
run: .venv/bin/pip install -v --no-binary=ninja $(ls sdist/*.tar.gz)
189189

190190
- name: Test installed SDist
191191
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)