diff options
author | Brad King <brad.king@kitware.com> | 2008-08-18 14:11:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-08-18 14:11:29 (GMT) |
commit | 94c1fe83fd1ef121f592554df0dedda5416afeba (patch) | |
tree | 095fb063b2de24dabfbf1aed1f72a56da94a936e /Source/cmTargetLinkLibrariesCommand.h | |
parent | 7f7068e9d48666ce58f6ba9455a52e7fadee9d6f (diff) | |
download | CMake-94c1fe83fd1ef121f592554df0dedda5416afeba.zip CMake-94c1fe83fd1ef121f592554df0dedda5416afeba.tar.gz CMake-94c1fe83fd1ef121f592554df0dedda5416afeba.tar.bz2 |
ENH: Make link interface mode more distinct
Rename the recently added INTERFACE mode of the target_link_libraries()
command to LINK_INTERFACE_LIBRARIES. This makes it much more distinct
from a normal call to the command, and clearly states its connection to
the property of the same name. Also require the option to appear
immediately after the target name to make it a mode rather than an
option.
Diffstat (limited to 'Source/cmTargetLinkLibrariesCommand.h')
-rw-r--r-- | Source/cmTargetLinkLibrariesCommand.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.h b/Source/cmTargetLinkLibrariesCommand.h index 6a9c0f4..cc37608 100644 --- a/Source/cmTargetLinkLibrariesCommand.h +++ b/Source/cmTargetLinkLibrariesCommand.h @@ -64,7 +64,7 @@ public: virtual const char* GetFullDocumentation() { return - " target_link_libraries(<target> [INTERFACE]\n" + " target_link_libraries(<target> [lib1 [lib2 [...]]]\n" " [[debug|optimized|general] <lib>] ...)\n" "Specify a list of libraries to be linked into the specified target. " "If any library name matches that of a target in the current project " @@ -90,7 +90,9 @@ public: "See the LINK_INTERFACE_LIBRARIES target property to override the " "set of transitive link dependencies for a target." "\n" - "The INTERFACE option tells the command to append the libraries " + " target_link_libraries(<target> LINK_INTERFACE_LIBRARIES\n" + " [[debug|optimized|general] <lib>] ...)\n" + "The LINK_INTERFACE_LIBRARIES mode appends the libraries " "to the LINK_INTERFACE_LIBRARIES and LINK_INTERFACE_LIBRARIES_DEBUG " "target properties instead of using them for linking. " "Libraries specified as \"debug\" are appended to the " |