summaryrefslogtreecommitdiffstats
path: root/Utilities/Release
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-05 17:52:14 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-05 17:52:14 (GMT)
commit7b654d63ecc093e9ce936867f602478c9e61a455 (patch)
treea81740a336471141edf8370a601962f332c917b0 /Utilities/Release
parent77e894d8f4f0337590eb47744f2e9be8a567a118 (diff)
downloadCMake-7b654d63ecc093e9ce936867f602478c9e61a455.zip
CMake-7b654d63ecc093e9ce936867f602478c9e61a455.tar.gz
CMake-7b654d63ecc093e9ce936867f602478c9e61a455.tar.bz2
ENH: add ability to set CC, CXX and LDFLAGS
Diffstat (limited to 'Utilities/Release')
-rwxr-xr-xUtilities/Release/release_cmake.sh.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/Utilities/Release/release_cmake.sh.in b/Utilities/Release/release_cmake.sh.in
index b43df55..a2e73c4 100755
--- a/Utilities/Release/release_cmake.sh.in
+++ b/Utilities/Release/release_cmake.sh.in
@@ -2,6 +2,7 @@
echo "remove and create working directory ~/CMakeReleaseDirectory"
rm -rf ~/CMakeReleaseDirectory
mkdir ~/CMakeReleaseDirectory
+
check_exit_value()
{
VALUE="$1"
@@ -11,6 +12,21 @@ check_exit_value()
fi
}
+if [ ! -z "@CC@" ]; then
+ set CC="@CC@"
+ check_exit_value $? "set CC compiler env var" || exit 1
+fi
+
+if [ ! -z "@CXX@" ]; then
+ set CXX="@CXX@"
+ check_exit_value $? "set CC compiler env var" || exit 1
+fi
+if [ ! -z "@LDFLAGS@" ]; then
+ set LDFLAGS="@LDFLAGS@"
+ check_exit_value $? "set CC compiler env var" || exit 1
+fi
+
+
if [ ! -z "@USER_MAKE_RULE_FILE_CONTENTS@" ]; then
echo "@USER_MAKE_RULE_FILE_CONTENTS@" > "@USER_MAKE_RULE_FILE@"
check_exit_value $? "Create User Rule file" || exit 1