diff options
author | Soji Yamakawa <soji@andrew.cmu.edu> | 2016-11-04 16:02:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-09 21:19:07 (GMT) |
commit | 883bd34a1fa31273929c7baf2f43b3c6f5ec0c01 (patch) | |
tree | 4505cdc5e38feabd73d036374ce140160f07aeec /Help | |
parent | 2a567c68ce6605071f3e21638560493b71ed2841 (diff) | |
download | CMake-883bd34a1fa31273929c7baf2f43b3c6f5ec0c01.zip CMake-883bd34a1fa31273929c7baf2f43b3c6f5ec0c01.tar.gz CMake-883bd34a1fa31273929c7baf2f43b3c6f5ec0c01.tar.bz2 |
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.rst | 5 | ||||
-rw-r--r-- | Help/release/dev/vs_targets_file_as_library.rst | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Help/command/target_link_libraries.rst b/Help/command/target_link_libraries.rst index 90b6575..30d69f2 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 0000000..9c923fa --- /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. |