diff options
Diffstat (limited to 'templates/vsprojects/vcxproj_defs.include')
-rw-r--r-- | templates/vsprojects/vcxproj_defs.include | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/vsprojects/vcxproj_defs.include b/templates/vsprojects/vcxproj_defs.include index 628074c75f..87412debda 100644 --- a/templates/vsprojects/vcxproj_defs.include +++ b/templates/vsprojects/vcxproj_defs.include @@ -4,12 +4,16 @@ <%def name="get_subsystem(is_library)">${'Windows' if is_library else 'Console'}</%def>\ <%def name="gen_project(name, collection, configuration_type = None, project_guid = None, props = [], packages = [])">\ <% + target = None for p in vsprojects: if p.name == name: project = p for t in collection: if t.name == name: target = t + if not configuration_type and target: + if target.build == 'test' or target.build == 'tool': + configuration_type = 'Application' if not configuration_type: configuration_type = 'StaticLibrary' if not project_guid: |