From dd93a8cdc31111819a093127bdf243d7524eccd2 Mon Sep 17 00:00:00 2001 From: legrand Date: Mon, 2 Jul 2007 13:46:26 +0000 Subject: [PATCH] aff CMake check before running the install git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@490 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/installParadiseo.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/trunk/installParadiseo.sh b/trunk/installParadiseo.sh index 35fe120c7..4f9138145 100755 --- a/trunk/installParadiseo.sh +++ b/trunk/installParadiseo.sh @@ -707,6 +707,14 @@ function run_install_step() execute_cmd "echo \"You must have automake installed to compile $PROG. Please update your system to get it before installing $PROG.\"" "[0-2] Check autoconf" $SPY DIE=1 } + +(cmake --version) < /dev/null > /dev/null 2>&1 || +{ + echo "You must have CMake installed to compile $PROG. Please update your system to get it before installing $PROG." + execute_cmd "echo \"You must have CMake installed to compile $PROG. Please update your system to get it before installing $PROG.\"" "[0-3] Check autoconf" $SPY + DIE=1 +} + if [ "$DIE" = "1" ] then exit 1