浏览代码

STYLE: Improve documentation of target_link_libraries command to make target-level dependency explicit. See bug #6043.

Brad King 17 年之前
父节点
当前提交
a5074872b0
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Source/cmTargetLinkLibrariesCommand.h

+ 4 - 1
Source/cmTargetLinkLibrariesCommand.h

@@ -71,7 +71,10 @@ public:
       "The debug and optimized strings may be used to indicate that "
       "The debug and optimized strings may be used to indicate that "
       "the next library listed is to be used only for that specific "
       "the next library listed is to be used only for that specific "
       "type of build. general indicates it is used for all build types "
       "type of build. general indicates it is used for all build types "
-      "and is assumed if not specified.";
+      "and is assumed if not specified.\n"
+      "If any library name matches that of a target in the current project "
+      "a dependency will automatically be added in the build system to make "
+      "sure the library being linked is up-to-date before the target links.";
     }
     }
   
   
   cmTypeMacro(cmTargetLinkLibrariesCommand, cmCommand);
   cmTypeMacro(cmTargetLinkLibrariesCommand, cmCommand);