From 4eb1a07759412bf3ffc58ba0ce4746b954535bbf Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Wed, 9 Jan 2013 10:22:01 +0100 Subject: [PATCH] Display CMake command-line that is being executed Since this is a compatibility script it will probably benefit people seeing which underlaying CMake command is being executed (not at least for debugging purposes) --- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure b/configure index b377125c..3533fe3d 100755 --- a/configure +++ b/configure @@ -160,5 +160,11 @@ done # remove all arguments processed by getopts shift $((OPTIND-1)) +# remove Autotools-specific variables +ENVVARS=${@/ACLOCAL_*=*/} + # pass everything on to CMake -env "$@" cmake "$(dirname $0)" "-DCMAKE_INSTALL_PREFIX=$prefix" ${FEATURES} +CMDLINE="env ${ENVVARS} cmake \"$(dirname "$0")\" \"-DCMAKE_INSTALL_PREFIX=$prefix\" ${FEATURES}" +echo --- calling CMake for opm-core --- +echo ${CMDLINE} +eval exec ${CMDLINE}