[Cmake-commits] CMake branch, next, updated. v2.8.6-1711-g314e67e

Brad King brad.king at kitware.com
Thu Oct 27 09:26:28 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  314e67e8236ce4d16c2865b0fe71d412f9792627 (commit)
       via  30e4a5204fb067f28ae3bc31955f9b8fbc8a2643 (commit)
      from  1257708ae2255006a3ba879464c4949d5b9a4670 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=314e67e8236ce4d16c2865b0fe71d412f9792627
commit 314e67e8236ce4d16c2865b0fe71d412f9792627
Merge: 1257708 30e4a52
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Thu Oct 27 09:26:27 2011 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu Oct 27 09:26:27 2011 -0400

    Merge topic 'doc-link_directories-misconception' into next
    
    30e4a52 Tell people that link_directories() is not what they are searching for


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=30e4a5204fb067f28ae3bc31955f9b8fbc8a2643
commit 30e4a5204fb067f28ae3bc31955f9b8fbc8a2643
Author:     Rolf Eike Beer <eike-kernel at sf-tec.de>
AuthorDate: Wed Oct 26 20:43:21 2011 +0200
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Thu Oct 27 09:23:05 2011 -0400

    Tell people that link_directories() is not what they are searching for
    
    Judging from the questions I see on the #cmake IRC channel this is one
    of the most common pitfalls for people coming from other build systems,
    especially plain Makefiles.  Finally put this into the documentation to
    stop people getting fooled into using this.
    
    Text by Brad King.

diff --git a/Source/cmLinkDirectoriesCommand.h b/Source/cmLinkDirectoriesCommand.h
index e5ff4f0..aa13589 100644
--- a/Source/cmLinkDirectoriesCommand.h
+++ b/Source/cmLinkDirectoriesCommand.h
@@ -65,7 +65,12 @@ public:
       "For historical reasons, relative paths given to this command are "
       "passed to the linker unchanged "
       "(unlike many CMake commands which interpret them relative to the "
-      "current source directory)."
+      "current source directory).\n"
+      "Note that this command is rarely necessary.  Library locations "
+      "returned by find_package() and find_library() are absolute paths.  "
+      "Pass these absolute library file paths directly to the "
+      "target_link_libraries() command.  CMake will ensure the linker finds "
+      "them."
       ;
     }
   

-----------------------------------------------------------------------

Summary of changes:
 Source/cmLinkDirectoriesCommand.h |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list