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.'])