summaryrefslogtreecommitdiff
path: root/Help
diff options
context:
space:
mode:
authorSoji Yamakawa <soji@andrew.cmu.edu>2016-11-04 12:02:22 -0400
committerBrad King <brad.king@kitware.com>2016-11-09 16:19:07 -0500
commit883bd34a1fa31273929c7baf2f43b3c6f5ec0c01 (patch)
tree4505cdc5e38feabd73d036374ce140160f07aeec /Help
parent2a567c68ce6605071f3e21638560493b71ed2841 (diff)
downloadcmake-883bd34a1fa31273929c7baf2f43b3c6f5ec0c01.tar.gz
VS: Treat libraries ending in `.targets` as msbuild imports
Generate `<Import Project="..." .../>` to import the `.targets` files into `.vcxproj` files. Closes: #16340
Diffstat (limited to 'Help')
-rw-r--r--Help/command/target_link_libraries.rst5
-rw-r--r--Help/release/dev/vs_targets_file_as_library.rst6
2 files changed, 11 insertions, 0 deletions
diff --git a/Help/command/target_link_libraries.rst b/Help/command/target_link_libraries.rst
index 90b6575476..30d69f2665 100644
--- a/Help/command/target_link_libraries.rst
+++ b/Help/command/target_link_libraries.rst
@@ -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``).
diff --git a/Help/release/dev/vs_targets_file_as_library.rst b/Help/release/dev/vs_targets_file_as_library.rst
new file mode 100644
index 0000000000..9c923facb4
--- /dev/null
+++ b/Help/release/dev/vs_targets_file_as_library.rst
@@ -0,0 +1,6 @@
+vs_targets_file_as_library
+--------------------------
+
+* :ref:`Visual Studio Generators` learned to treat files passed to
+ :command:`target_link_libraries` whose names end in ``.targets``
+ as MSBuild targets files to be imported into generated project files.