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/command/target_link_libraries.rst | |
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/command/target_link_libraries.rst')
-rw-r--r-- | Help/command/target_link_libraries.rst | 5 |
1 files changed, 5 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``). |