From a109ba1365e608d11200470e4d3ee4b1fa24caed Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 25 Mar 2004 08:45:46 -0500 Subject: ENH: Clarified documentation for LINK_LIBRARIES and TARGET_LINK_LIBRARIES. --- Source/cmLinkLibrariesCommand.h | 6 ++++-- Source/cmTargetLinkLibrariesCommand.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/cmLinkLibrariesCommand.h b/Source/cmLinkLibrariesCommand.h index 928d30a..c9b7c53 100644 --- a/Source/cmLinkLibrariesCommand.h +++ b/Source/cmLinkLibrariesCommand.h @@ -69,14 +69,16 @@ public: { return " LINK_LIBRARIES(library1 library2 ...)\n" + "This is an old CMake command for linking libraries. Use " + "TARGET_LINK_LIBRARIES unless you have a good reason for every target " + "to link to the same set of libraries.\n" "Specify a list of libraries to be linked into " "any following targets (typically added with the ADD_EXECUTABLE " "or ADD_LIBRARY calls). This command is passed " "down to all subdirectories. " "The debug and optimized strings may be used to indicate that " "the next library listed is to be used only for that specific " - "type of build. Considure using TARGET_LINK_LIBRARIES for more " - "specific linking control."; + "type of build."; } cmTypeMacro(cmLinkLibrariesCommand, cmCommand); diff --git a/Source/cmTargetLinkLibrariesCommand.h b/Source/cmTargetLinkLibrariesCommand.h index af08897..52d744a 100644 --- a/Source/cmTargetLinkLibrariesCommand.h +++ b/Source/cmTargetLinkLibrariesCommand.h @@ -71,7 +71,7 @@ public: " TARGET_LINK_LIBRARIES(target library1\n" " library2\n" " ...)\n" - "Specify a list of libraries to be linked into the specified target " + "Specify a list of libraries to be linked into the specified target. " "The debug and optimized strings may be used to indicate that " "the next library listed is to be used only for that specific " "type of build"; -- cgit v0.12