[BASH] allow additional custom config for cmake
This commit is contained in:
parent
cb34241544
commit
e5f8ecd7ec
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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=""
|
||||
|
||||
##############################################
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue