mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix check for cmake commands on POSIX shells
This commit is contained in:
parent
2885f3ead4
commit
e380a12a8b
1 changed files with 2 additions and 2 deletions
4
configure
vendored
4
configure
vendored
|
@ -335,9 +335,9 @@ done
|
||||||
|
|
||||||
if [ -z "$CMakeCommand" ]; then
|
if [ -z "$CMakeCommand" ]; then
|
||||||
# prefer cmake3 over "regular" cmake (cmake == cmake2 on RHEL)
|
# prefer cmake3 over "regular" cmake (cmake == cmake2 on RHEL)
|
||||||
if type cmake3 &> /dev/null ; then
|
if command -v cmake3 >/dev/null 2>&1 ; then
|
||||||
CMakeCommand="cmake3"
|
CMakeCommand="cmake3"
|
||||||
elif type cmake &> /dev/null ; then
|
elif command -v cmake >/dev/null 2>&1 ; then
|
||||||
CMakeCommand="cmake"
|
CMakeCommand="cmake"
|
||||||
else
|
else
|
||||||
echo "This package requires CMake, please install it first."
|
echo "This package requires CMake, please install it first."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue