Skip to content

fix: force BUILD_TESTING to inherit RUN_NINJA_TEST value - #340

Merged
mayeut merged 2 commits into
scikit-build:masterfrom
mayeut:no-tests
Aug 30, 2026
Merged

fix: force BUILD_TESTING to inherit RUN_NINJA_TEST value#340
mayeut merged 2 commits into
scikit-build:masterfrom
mayeut:no-tests

Conversation

@mayeut

@mayeut mayeut commented Dec 20, 2025

Copy link
Copy Markdown
Contributor

fix #330

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses #330 by preventing Ninja’s upstream CMake from enabling its test infrastructure (and thereby fetching GoogleTest) when RUN_NINJA_TEST is disabled during packaging/install builds.

Changes:

  • Propagate RUN_NINJA_TEST into BUILD_TESTING before adding the ninja-upstream subdirectory.
  • Increase verbosity for the SDist installation step in the GitHub Actions workflow to aid debugging build/install failures.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
CMakeLists.txt Sets BUILD_TESTING based on RUN_NINJA_TEST prior to configuring ninja-upstream, aiming to prevent test deps (e.g., GTest) from being fetched when tests are off.
.github/workflows/build.yml Adds -v to the SDist install command to provide more detailed logs in CI.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CMakeLists.txt Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@mayeut
mayeut merged commit b1c0411 into scikit-build:master Aug 30, 2026
21 checks passed
@mayeut
mayeut deleted the no-tests branch August 30, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pip install ninja will download googletest from GitHub

3 participants