VS: Treat libraries ending in .targets as msbuild imports

Generate `<Import Project="..." .../>` to import the `.targets` files
into `.vcxproj` files.

Closes: #16340
This commit is contained in:
Soji Yamakawa
2016-11-04 12:02:22 -04:00
committed by Brad King
parent 2a567c68ce
commit 883bd34a1f
5 changed files with 140 additions and 5 deletions

View File

@@ -53,6 +53,11 @@ Each ``<item>`` may be:
:ref:`usage requirement <Target Usage Requirements>`. This has the same
effect as passing the framework directory as an include directory.
On :ref:`Visual Studio Generators` for VS 2010 and above, library files
ending in ``.targets`` will be treated as MSBuild targets files and
imported into generated project files. This is not supported by other
generators.
* **A plain library name**: The generated link line will ask the linker
to search for the library (e.g. ``foo`` becomes ``-lfoo`` or ``foo.lib``).