diff options
author | David Cole <david.cole@kitware.com> | 2011-11-01 18:26:27 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-11-01 18:26:27 (GMT) |
commit | 5531e5e162d448d6f63cea509c2a634b7fea0654 (patch) | |
tree | f78dae9086788c60485fd14c323b535547486760 | |
parent | c2300e6265400089b8efb5e34e4d33e1425354ac (diff) | |
parent | 30e4a5204fb067f28ae3bc31955f9b8fbc8a2643 (diff) | |
download | CMake-5531e5e162d448d6f63cea509c2a634b7fea0654.zip CMake-5531e5e162d448d6f63cea509c2a634b7fea0654.tar.gz CMake-5531e5e162d448d6f63cea509c2a634b7fea0654.tar.bz2 |
Merge topic 'doc-link_directories-misconception'
30e4a52 Tell people that link_directories() is not what they are searching for
-rw-r--r-- | Source/cmLinkDirectoriesCommand.h | 7 |
1 files changed, 6 insertions, 1 deletions
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." ; } |