#!/bin/sh | |
ABORT=no | |
check_cmake() { | |
(cmake --version) < /dev/null > /dev/null 2>&1 || { | |
echo "error: cmake 2.8 or higher must be present to configure and install MADlib" | |
ABORT=yes | |
} | |
} | |
check_cmake | |
test "$ABORT" = yes && exit -1 | |
cd `dirname $0` | |
mkdir -p build | |
cd build | |
rm -f CMakeCache.txt | |
cmake "$@" .. |