Skip to content

fix: use CMAKE_COMMAND instead of bare cmake in build - #15001

Open
joehendrix wants to merge 1 commit into
leanprover:masterfrom
joehendrix:jhx/bare_cmake
Open

fix: use CMAKE_COMMAND instead of bare cmake in build#15001
joehendrix wants to merge 1 commit into
leanprover:masterfrom
joehendrix:jhx/bare_cmake

Conversation

@joehendrix

@joehendrix joehendrix commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This PR replaces bare uses of cmake in build script with ${CMAKE_COMMAND} to avoid path issues.

This matches CMake guidance and the file's own existing use of ${CMAKE_COMMAND} elsewhere.

The changes in this commit used AI.

The add_custom_target copy steps invoked "cmake" directly which uses the version
of cmake on the path at build time.  This uses ${CMAKE_COMMAND} -- the
absolute path to the cmake driving the build -- so these steps do not depend
on PATH and always use the same cmake.  This matches CMake guidance and the
file's own existing use of ${CMAKE_COMMAND} elsewhere.
@joehendrix joehendrix changed the title fix: Use ${CMAKE_COMMAND} instead of bare cmake in build. fix: Use CMAKE_COMMAND instead of bare cmake in build. Sep 2, 2026
@joehendrix joehendrix changed the title fix: Use CMAKE_COMMAND instead of bare cmake in build. fix: Use CMAKE_COMMAND instead of bare cmake in build Sep 2, 2026
@joehendrix joehendrix changed the title fix: Use CMAKE_COMMAND instead of bare cmake in build fix: use CMAKE_COMMAND instead of bare cmake in build Sep 2, 2026
@github-actions github-actions Bot added toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN labels Sep 2, 2026
@leanprover-bot

leanprover-bot commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

@leanprover-bot leanprover-bot added the builds-manual CI has verified that the Lean Language Reference builds against this PR label Sep 2, 2026
@joehendrix
joehendrix marked this pull request as ready for review September 2, 2026 18:39
@mathlib-lean-pr-testing mathlib-lean-pr-testing Bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Sep 2, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-manual CI has verified that the Lean Language Reference builds against this PR builds-mathlib CI has verified that Mathlib builds against this PR mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants