Permalink
Browse files

VS2010: only set TargetName if non-default.

  • Loading branch information...
1 parent c6099e1 commit 1518d8035a062c4dd62d5abf57a1dcacd48ff8fe @vslavik committed Apr 4, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/bkl/plugins/vs2010.py
@@ -562,8 +562,9 @@ def gen_for_target(self, target):
self._add_extra_options_to_node(target, n)
if not is_library:
n.add("LinkIncremental", c == "Debug")
- # TODO: add TargetName only if it's non-default
- n.add("TargetName", target[target.type.basename_prop])
+ targetname = target[target.type.basename_prop]
+ if targetname != target.name:
+ n.add("TargetName", targetname)
# TODO: handle the defaults in a nicer way
if target["outputdir"].as_native_path(paths_info) != paths_info.builddir_abs:
n.add("OutDir", target["outputdir"])

0 comments on commit 1518d80

Please sign in to comment.