Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
16
tools/autobuild/detect_cmake.sh
Executable file
16
tools/autobuild/detect_cmake.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e -u
|
||||
|
||||
# If CMAKE variable is set, use it
|
||||
[ -n "${CMAKE-}" -a -x "${CMAKE-}" ] && return 0
|
||||
|
||||
# Find cmake, prefer cmake3
|
||||
for name in cmake3 cmake; do
|
||||
if command -v "$name" > /dev/null; then
|
||||
CMAKE="$name"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
echo 'Error: cmake is not installed.' >&2
|
||||
exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue