Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

VS2010: only set TargetName if non-default.

  • Loading branch information...
commit 1518d8035a062c4dd62d5abf57a1dcacd48ff8fe 1 parent c6099e1
@vslavik authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/bkl/plugins/vs2010.py
View
5 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"])
Please sign in to comment.
Something went wrong with that request. Please try again.