Commit e7c59db0 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Allow using CMAKE_BUILD_TYPE other than Debug and Release.

parent e9664d1b
......@@ -175,7 +175,10 @@ target_names = sorted(targets.keys())
def run(target, debug, latest, list_cmake_variables, force_build, additional_args):
build_type = 'Debug' if debug else 'Release'
if type(debug) is str:
build_type = debug
else:
build_type = 'Debug' if debug else 'Release'
if target.required_build_platforms is not None:
if not platform.system() in target.required_build_platforms:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment