ENH: add ability to set CC, CXX and LDFLAGS
This commit is contained in:
parent
77e894d8f4
commit
7b654d63ec
|
@ -2,6 +2,7 @@
|
||||||
echo "remove and create working directory ~/CMakeReleaseDirectory"
|
echo "remove and create working directory ~/CMakeReleaseDirectory"
|
||||||
rm -rf ~/CMakeReleaseDirectory
|
rm -rf ~/CMakeReleaseDirectory
|
||||||
mkdir ~/CMakeReleaseDirectory
|
mkdir ~/CMakeReleaseDirectory
|
||||||
|
|
||||||
check_exit_value()
|
check_exit_value()
|
||||||
{
|
{
|
||||||
VALUE="$1"
|
VALUE="$1"
|
||||||
|
@ -11,6 +12,21 @@ check_exit_value()
|
||||||
fi
|
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
|
if [ ! -z "@USER_MAKE_RULE_FILE_CONTENTS@" ]; then
|
||||||
echo "@USER_MAKE_RULE_FILE_CONTENTS@" > "@USER_MAKE_RULE_FILE@"
|
echo "@USER_MAKE_RULE_FILE_CONTENTS@" > "@USER_MAKE_RULE_FILE@"
|
||||||
check_exit_value $? "Create User Rule file" || exit 1
|
check_exit_value $? "Create User Rule file" || exit 1
|
||||||
|
|
Loading…
Reference in New Issue