make comment consistent with code

This commit is contained in:
Radovan Bast 2017-03-28 14:13:20 +02:00
parent 9006d96b1b
commit dffc84c013

View File

@ -142,9 +142,10 @@ def gen_cmakelists(project_name, min_cmake_version, default_build_type, relative
'relwithdebinfo': 'RelWithDebInfo',
'minsizerel': 'MinSizeRel'}
s.append('\n# if CMAKE_BUILD_TYPE undefined, we set it to Debug')
_build_type = build_type_capitalized[default_build_type]
s.append('\n# if CMAKE_BUILD_TYPE undefined, we set it to {0}'.format(_build_type)
s.append('if(NOT CMAKE_BUILD_TYPE)')
s.append(' set(CMAKE_BUILD_TYPE "{0}")'.format(build_type_capitalized[default_build_type]))
s.append(' set(CMAKE_BUILD_TYPE "{0}")'.format(_build_type))
s.append('endif()')
if len(modules) > 0: