Skip to content

feat: Fail early if Ninja sources are missing#303

Merged
henryiii merged 1 commit into
scikit-build:masterfrom
jcfr:check-ninja-sources-are-available
Jun 20, 2025
Merged

feat: Fail early if Ninja sources are missing#303
henryiii merged 1 commit into
scikit-build:masterfrom
jcfr:check-ninja-sources-are-available

Conversation

@jcfr
Copy link
Copy Markdown
Contributor

@jcfr jcfr commented Jun 19, 2025

Add an explicit check in the top-level CMakeLists.txt to verify that the ninja-upstream source directory is present. This helps catch configuration issues early, especially in environments where the source was cloned without initializing sub-modules.

If the directory is missing and the project is under Git, the error suggests initializing sub-modules. Otherwise, it indicates an invalid source distribution.

@jcfr jcfr mentioned this pull request Jun 19, 2025
Add an explicit check in the top-level `CMakeLists.txt` to verify that the
`ninja-upstream` source directory is present. This helps catch configuration
issues early, especially in environments where the source was cloned without
initializing submodules.

If the directory is missing and the project is under Git, the error suggests
initializing submodules. Otherwise, it indicates an invalid source distribution.
@jcfr jcfr force-pushed the check-ninja-sources-are-available branch from c30e248 to d234744 Compare June 19, 2025 20:12
@jcfr jcfr requested review from henryiii and mayeut June 19, 2025 20:19
@henryiii henryiii merged commit 1054fcc into scikit-build:master Jun 20, 2025
17 checks passed
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.

3 participants