-
Notifications
You must be signed in to change notification settings - Fork 82
build(core): Lock CMake version to < 4 across all platforms to avoid third-party library compilation issues. #796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+43
−5
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
341c485
build(core): Lock CMake to v3.31.6 on macOS to mitigate #793.
kirkrodrigues eb903f9
Fix argument order.
kirkrodrigues 954a769
Remove unnecessary argument.
kirkrodrigues 9268619
Enforce to use cmake version under 4.0.0. y-scope#795
Bill-hbrhbr 0ddd87d
Fix MacOS missing variable def
Bill-hbrhbr 51d88db
Apply suggestions from code review
Bill-hbrhbr 38e4311
Rename check cmake version script file
Bill-hbrhbr 9ecc868
Use cmake -E capabilities which does not rely on custom parsing
Bill-hbrhbr 3869dcd
Remove quotes around version string during jq
Bill-hbrhbr a9f0991
Use long option
Bill-hbrhbr 614688d
Revert to using cmake major version
Bill-hbrhbr cb88d87
Use number comparison
Bill-hbrhbr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
components/core/tools/scripts/lib_install/check-cmake-version.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit on any error | ||
set -e | ||
|
||
# Error on undefined variable | ||
set -u | ||
|
||
# Get the installed cmake version string | ||
cmake_version=$(cmake -E capabilities | jq --raw-output ".version.string") | ||
cmake_major_version=$(cmake -E capabilities | jq --raw-output ".version.major") | ||
|
||
# Check if version is 4.0 or higher | ||
if [[ "$cmake_major_version" -ge "4" ]]; then | ||
echo "CMake version $cmake_version is currently unsupported (>= 4.0)." | ||
exit 1 | ||
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.