From 9cc33fa014f6c42b0c564c89f36fdd8b8501b1ac Mon Sep 17 00:00:00 2001 From: Radovan Bast Date: Sun, 28 Jun 2015 12:11:57 +0200 Subject: [PATCH] add --generator flag (thanks to Miro) --- update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update.py b/update.py index bb1cf30..e1719bb 100755 --- a/update.py +++ b/update.py @@ -92,6 +92,7 @@ def gen_cmake_command(config): s.append(' command.append(%s)' % definition) s.append(" command.append('-DCMAKE_BUILD_TYPE=%s' % arguments['--type'])") + s.append(" command.append('-G \"%s\"' % arguments['--generator'])") s.append("\n return ' '.join(command)") @@ -129,6 +130,7 @@ def gen_setup(config, relative_path): options.append([first, rest]) options.append(['--type=', 'Set the CMake build type (debug, release, or relwithdeb) [default: release].']) + options.append(['--generator=', 'Set the CMake build system generator [default: Unix Makefiles].']) options.append(['--show', 'Show CMake command and exit.']) options.append(['', 'Build directory.']) options.append(['-h --help', 'Show this screen.'])