vs: do not automatically link dependencies

This commit is contained in:
Nicolas Schneider 2019-02-13 00:36:36 +01:00
parent 06268665cd
commit 9c55e50bea
1 changed files with 4 additions and 0 deletions

View File

@ -440,6 +440,10 @@ class Vs2010Backend(backends.Backend):
ig = ET.SubElement(root, 'ItemGroup')
pref = ET.SubElement(ig, 'ProjectReference', Include=include)
ET.SubElement(pref, 'Project').text = '{%s}' % projid
# Do not link in generated .lib files from dependencies automatically.
# We only use the dependencies for ordering and link in the generated
# objects and .lib files manually.
ET.SubElement(pref, 'LinkLibraryDependencies').text = 'false'
def add_target_deps(self, root, target):
target_dict = {target.get_id(): target}