24 lines
428 B
Bash
Executable File
24 lines
428 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ABORT=no
|
|
|
|
check_cmake()
|
|
{
|
|
(cmake --version) </dev/null >/dev/null 2>&1 ||
|
|
{
|
|
echo "error: cmake (version 2.8 or later) must be present to configure and install Armadillo"
|
|
echo ""
|
|
echo "cmake might be available as a package for your system,"
|
|
echo "or can be downloaded from http://cmake.org"
|
|
ABORT=yes
|
|
}
|
|
}
|
|
|
|
check_cmake
|
|
|
|
test "$ABORT" = yes && exit -1
|
|
|
|
rm -f CMakeCache.txt
|
|
cmake $@ .
|
|
|