From 65a7a10e6d1e5aaddaabfe7e68af9a6b21769772 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 28 Oct 2018 21:58:57 +0100 Subject: [PATCH] BuildSimGrid.sh: Try to install the lib if possible --- BuildSimGrid.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/BuildSimGrid.sh b/BuildSimGrid.sh index 7d5a00f474..e42d186a4c 100755 --- a/BuildSimGrid.sh +++ b/BuildSimGrid.sh @@ -11,7 +11,16 @@ if [ ! -e Makefile ] ; then exit 1 fi +target=all + +install_path=`grep ^CMAKE_INSTALL_PREFIX:PATH= CMakeCache.txt|sed 's/^[^=]*=//'` +if [ -e ${install_path} -a -d ${install_path} -a -x ${install_path} ] ; then + target=install +fi + ( - (nice make -j4 || make) && nice ctest -j4 --output-on-failure ; date + echo "install_path: ${install_path}" + echo "Target: ${target}" + (nice make -j4 ${target} || make) && nice ctest -j4 --output-on-failure ; date ) 2>&1 | tee BuildSimGrid.sh.log exit 0 -- 2.20.1