Skip to content

Commit

Permalink
always provide --type
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Jun 22, 2015
1 parent a2eda46 commit 9018ad3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def gen_cmake_command(config):
for definition in config.get(section, 'define').split('\n'):
s.append(' command.append(%s)' % definition)

s.append(" command.append('-DCMAKE_BUILD_TYPE=%s' % arguments['--type'])")

s.append("\n return ' '.join(command)")

return '\n'.join(s)
Expand Down Expand Up @@ -127,6 +129,7 @@ def gen_setup(config, relative_path):
rest = ' '.join(opt.split()[1:]).strip()
options.append([first, rest])

options.append(['--type=<TYPE>', 'Set the CMake build type (debug, release, or relwithdeb) [default: release].'])
options.append(['--show', 'Show CMake command and exit.'])
options.append(['<builddir>', 'Build directory.'])
options.append(['-h --help', 'Show this screen.'])
Expand Down

0 comments on commit 9018ad3

Please sign in to comment.