From 873a91ce65b71ba2716e11ed2b4c5c87a0c8a432 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Wed, 15 Feb 2012 10:19:28 +0000 Subject: [PATCH] Bugfix: prevent double configurations; Prefer configure before cmake. --- functions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions.sh b/functions.sh index 4448b7f..195bf96 100644 --- a/functions.sh +++ b/functions.sh @@ -65,8 +65,7 @@ src_configure() { if [ ! -z $LOGDIR -a -f config.log ] ; then cp config.log $LOGDIR fi - fi - if [ -f ${SRCDIR}/CMakeLists.txt ] ; then + elif [ -f ${SRCDIR}/CMakeLists.txt ] ; then #sit_info "Running cmake" cmake -DCMAKE_INSTALL_PREFIX=$PREFIX ${SRCDIR} fi