add flag --cmake-executable; fixes #81

This commit is contained in:
Radovan Bast 2015-08-27 17:41:20 +02:00
parent 4c0a938426
commit 831e24a35b

View File

@ -92,7 +92,7 @@ def gen_cmake_command(config):
for env in config.get(section, 'export').split('\n'):
s.append(' command.append(%s)' % env)
s.append(" command.append('cmake')")
s.append(" command.append('%s' % arguments['--cmake-executable'])")
# take care of cmake definitions
for section in config.sections():
@ -153,6 +153,7 @@ def gen_setup(config, relative_path):
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(['--cmake-executable=<CMAKE_EXECUTABLE>', 'Set the CMake executable [default: cmake].'])
options.append(['--cmake-options=<OPTIONS>', 'Define options to CMake [default: None].'])
options.append(['<builddir>', 'Build directory.'])
options.append(['-h --help', 'Show this screen.'])