diff options
author | Alex Neundorf <neundorf@kde.org> | 2013-01-27 17:00:14 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2013-01-27 17:00:14 (GMT) |
commit | a7d6ebb01ba7418af3af74a532900f0d7cb210fe (patch) | |
tree | 66b8f34207b905870c7e91f0798f0497ccef6a44 | |
parent | f7db6d115d0bd665ee0ed9be9994a59792d016af (diff) | |
download | CMake-a7d6ebb01ba7418af3af74a532900f0d7cb210fe.zip CMake-a7d6ebb01ba7418af3af74a532900f0d7cb210fe.tar.gz CMake-a7d6ebb01ba7418af3af74a532900f0d7cb210fe.tar.bz2 |
documentation: handling of relative paths by include- and link_directories()
Alex
-rw-r--r-- | Source/cmIncludeDirectoryCommand.h | 5 | ||||
-rw-r--r-- | Source/cmLinkDirectoriesCommand.h | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/Source/cmIncludeDirectoryCommand.h b/Source/cmIncludeDirectoryCommand.h index a32fc77..77a340a 100644 --- a/Source/cmIncludeDirectoryCommand.h +++ b/Source/cmIncludeDirectoryCommand.h @@ -59,8 +59,9 @@ public: return " include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)\n" "Add the given directories to those the compiler uses to search " - "for include files. " - "These directories are added to the directory property " + "for include files. Relative paths are interpreted as relative to " + "the current source directory. \n" + "The include directories are added to the directory property " "INCLUDE_DIRECTORIES for the current CMakeLists file. " "They are also added to the target property INCLUDE_DIRECTORIES " "for each target in the current CMakeLists file. " diff --git a/Source/cmLinkDirectoriesCommand.h b/Source/cmLinkDirectoriesCommand.h index 889118c..9218f44 100644 --- a/Source/cmLinkDirectoriesCommand.h +++ b/Source/cmLinkDirectoriesCommand.h @@ -62,10 +62,8 @@ public: " link_directories(directory1 directory2 ...)\n" "Specify the paths in which the linker should search for libraries. " "The command will apply only to targets created after it is called. " - "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).\n" + "Relative paths given to this command are interpreted as relative to " + "the current source directory, see CMP0015. \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 " |