add --generator flag (thanks to Miro)
This commit is contained in:
parent
115f3475a6
commit
9cc33fa014
@ -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=<TYPE>', 'Set the CMake build type (debug, release, or relwithdeb) [default: release].'])
|
||||
options.append(['--generator=<STRING>', 'Set the CMake build system generator [default: Unix Makefiles].'])
|
||||
options.append(['--show', 'Show CMake command and exit.'])
|
||||
options.append(['<builddir>', 'Build directory.'])
|
||||
options.append(['-h --help', 'Show this screen.'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user