Skip to content

Commit 614688d

Browse files
committed
Revert to using cmake major version
1 parent a9f0991 commit 614688d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/core/tools/scripts/lib_install/check-cmake-version.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ set -u
88

99
# Get the installed cmake version string
1010
cmake_version=$(cmake -E capabilities | jq --raw-output ".version.string")
11+
cmake_major_version=$(cmake -E capabilities | jq --raw-output ".version.major")
1112

1213
# Check if version is 4.0 or higher
1314
# shellcheck disable=SC2071
14-
if ! [[ $cmake_version < "4" ]]; then
15+
if ! [[ "$cmake_major_version" < "4" ]]; then
1516
echo "CMake version $cmake_version is currently unsupported (>= 4.0)."
1617
exit 1
1718
fi

0 commit comments

Comments
 (0)