mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
17 lines
298 B
Bash
Executable File
17 lines
298 B
Bash
Executable File
#!/bin/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
|