From e5f8ecd7ecd70a413d27dab6c375647a3f6b0a12 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Sun, 31 Jul 2016 10:51:09 +0200 Subject: [PATCH] [BASH] allow additional custom config for cmake --- bin/compiler/includes/functions.sh | 2 +- conf/config.sh.dist | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/compiler/includes/functions.sh b/bin/compiler/includes/functions.sh index 1f30ba756..d8fe078b9 100644 --- a/bin/compiler/includes/functions.sh +++ b/bin/compiler/includes/functions.sh @@ -31,7 +31,7 @@ function configure() { cmake $SRCPATH -DCMAKE_INSTALL_PREFIX=$BINPATH -DCONF_DIR=$CONFDIR -DSERVERS=$CSERVERS \ -DSCRIPTS=$CSCRIPTS \ -DTOOLS=$CTOOLS -DUSE_SCRIPTPCH=$CSCRIPTPCH -DUSE_COREPCH=$CCOREPCH -DWITH_COREDEBUG=$CDEBUG -DCMAKE_BUILD_TYPE=$CTYPE -DWITH_WARNINGS=$CWARNINGS \ - -DCMAKE_C_COMPILER=$CCOMPILERC -DCMAKE_CXX_COMPILER=$CCOMPILERCXX + -DCMAKE_C_COMPILER=$CCOMPILERC -DCMAKE_CXX_COMPILER=$CCOMPILERCXX $CCUSTOMOPTIONS cd $CWD diff --git a/conf/config.sh.dist b/conf/config.sh.dist index 88b99d2fd..f14fe7887 100644 --- a/conf/config.sh.dist +++ b/conf/config.sh.dist @@ -42,6 +42,8 @@ CTOOLS=0 # use precompiled headers ( fatest compilation but not optimized if you change headers often ) CSCRIPTPCH=1 CCOREPCH=1 +# you can add your custom definitions here ( -D ) +CCUSTOMOPTIONS="" ############################################## #