Skip to content
Snippets Groups Projects
Commit 3e9a414d authored by Markus Blatt's avatar Markus Blatt
Browse files

[release] Honor USE_CMAKE environment variable and allow deactivating it on the command line.

With this patch the USE_CMAKE environment variable is queried whether or not CMake
should be used. This can be overwritten in an options file or on the command line
using either the --cmake or --no-cmakr switch.
parent 3887555a
No related branches found
No related tags found
No related merge requests found
......@@ -795,6 +795,9 @@ export RESUME_FLAG=no
export REVERSE_FLAG=no
export SKIPFIRST=no
# read environment variable USE_CMAKE
export DUNE_USE_CMAKE="$(echo $USE_CMAKE)"
# parse commandline parameters
while test $# -gt 0; do
# get option
......@@ -902,9 +905,12 @@ while test $# -gt 0; do
--skipfirst)
export SKIPFIRST=yes
;;
--use-cmake)
--use-cmake|--cmake)
export DUNE_USE_CMAKE=yes
;;
--no-cmake)
export DUNE_USE_CMAKE=no
;;
--debug) true ;; # ignore this option, it is handled right at the beginning
--*)
usage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment