This commit is contained in:
Radovan Bast 2015-06-29 22:21:19 +02:00
parent e3b8f29e21
commit e09b663c0e

View File

@ -65,18 +65,14 @@ def adapt_cmake_command_to_platform(cmake_command, platform):
""" """
if platform == 'win32': if platform == 'win32':
cmake_pos = cmake_command.find('cmake') pos = cmake_command.find('cmake')
cmake_export_vars = cmake_command[:cmake_pos] cmake_export_vars = cmake_command[:pos]
cmake_strings = cmake_command[cmake_pos:] rest = cmake_command[pos:]
all_modified_exported_vars = "" s = ['set %s &&' % e for e in cmake_export_vars.split()]
for exported_var in cmake_export_vars.split(): s.append(rest)
modified_exported_var = "set " + exported_var + " && " return ' '.join(s)
all_modified_exported_vars = all_modified_exported_vars + modified_exported_var
cmake_command_platform = all_modified_exported_vars + cmake_strings
else: else:
cmake_command_platform = cmake_command return cmake_command
return cmake_command_platform
def run_cmake(command, build_path, default_build_path): def run_cmake(command, build_path, default_build_path):