(cmake)(cmake.install) Update note for PATH to new defaults #2651
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update Readme and install script to current cmake defaults.
Description
The installer automatically adds cmake to the PATH starting with version 3.0.30. Also the respective installer argument takes the values
0
and1
(legacy values are still supported though).See https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9386
Motivation and Context
The readme and warning on the CLI are outdated / wrong.
How Has this Been Tested?
I have installed cmake in a windows sandbox environment using chocolatey and verified that it does indeed add itself to the path by default. Also running
choco install cmake.install --installargs 'ADD_CMAKE_TO_PATH=0'
prevents this behavior.Given that the only functional change is the removal of
Write-Warning
, this should be sufficient.Types of changes
Checklist: