summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-01-24 20:46:22 (GMT)
committerBrad King <brad.king@kitware.com>2013-01-24 21:06:14 (GMT)
commitf032fb904b9b7a4f18702bcdbdeff0dfda01b803 (patch)
tree37d8a77e0483d8fab8643193fb0ed03cf03bae30
parent21fc6c46df7f2271d7baace04f239f031785b917 (diff)
downloadCMake-f032fb904b9b7a4f18702bcdbdeff0dfda01b803.zip
CMake-f032fb904b9b7a4f18702bcdbdeff0dfda01b803.tar.gz
CMake-f032fb904b9b7a4f18702bcdbdeff0dfda01b803.tar.bz2
target_link_libraries: Document that new sigs privatize old (#13876)
Explain in the documentation for the legacy signature target_link_libraries(foo bar) that the other signatures like target_link_libraries(foo LINK_INTERFACE_LIBRARIES ...) target_link_libraries(foo LINK_PRIVATE ...) will set the LINK_INTERFACE_LIBRARIES target property and therefore make libraries specified only by the legacy signature private.
-rw-r--r--Source/cmTargetLinkLibrariesCommand.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.h b/Source/cmTargetLinkLibrariesCommand.h
index 34fe54c..3da3950 100644
--- a/Source/cmTargetLinkLibrariesCommand.h
+++ b/Source/cmTargetLinkLibrariesCommand.h
@@ -93,7 +93,9 @@ public:
"linked to this target will appear on the link line for the other "
"target too. "
"See the LINK_INTERFACE_LIBRARIES target property to override the "
- "set of transitive link dependencies for a target."
+ "set of transitive link dependencies for a target. "
+ "Calls to other signatures of this command may set the property "
+ "making any libraries linked exclusively by this signature private."
"\n"
" target_link_libraries(<target> LINK_INTERFACE_LIBRARIES\n"
" [[debug|optimized|general] <lib>] ...)\n"