Skip to content
  • Brad King's avatar
    Do not link library dependencies in VS solutions · bc43b0f2
    Brad King authored
    In VS 8 and greater this commit implements
    
      add_dependencies(myexe mylib) # depend without linking
    
    by adding the
    
      LinkLibraryDependencies="false"
    
    option to project files.  Previously the above code would cause myexe to
    link to mylib in VS 8 and greater.  This option prevents dependencies
    specified only in the solution from being linked.  We already specify
    the real link library dependencies in the project files, and any project
    depending on this to link would not have worked in Makefile generators.
    
    We were already avoiding this problem in VS 7.1 and below by inserting
    intermediate mylib_UTILITY targets.  It was more important for those
    versions because if a static library depended on another library the
    librarian would copy the dependees into the depender!  This is no longer
    the case with VS 8 and above so we do not need that workaround.
    
    See issue #9732.
    bc43b0f2