diff options
author | Brad King <brad.king@kitware.com> | 2010-12-16 19:00:11 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2010-12-16 19:00:11 (GMT) |
commit | 419302e2d6ebdbcdb29c97a314f707ff34ea0d08 (patch) | |
tree | 7fc75df2b7799850ada0acce6fa079cb67e9b3eb /Source | |
parent | 3a6c4809084b83fbfa3bb4a175d5e844888bb552 (diff) | |
parent | 999ce0aa9c3fe2def05bde37ffbff627b2df8235 (diff) | |
download | CMake-419302e2d6ebdbcdb29c97a314f707ff34ea0d08.zip CMake-419302e2d6ebdbcdb29c97a314f707ff34ea0d08.tar.gz CMake-419302e2d6ebdbcdb29c97a314f707ff34ea0d08.tar.bz2 |
Merge topic 'doc-target_link_libraries-scope'
999ce0a Document target_link_libraries target scope (#11058)
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmMakefile.cxx | 4 | ||||
-rw-r--r-- | Source/cmTargetLinkLibrariesCommand.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 9983e5d..1463680 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1364,8 +1364,8 @@ void cmMakefile::AddLinkLibraryForTarget(const char *target, cmOStringStream e; e << "Attempt to add link library \"" << lib << "\" to target \"" - << target << "\" which is not built by this project."; - cmSystemTools::Error(e.str().c_str()); + << target << "\" which is not built in this directory."; + this->IssueMessage(cmake::FATAL_ERROR, e.str().c_str()); } } diff --git a/Source/cmTargetLinkLibrariesCommand.h b/Source/cmTargetLinkLibrariesCommand.h index 43a0d7c..ce57df7 100644 --- a/Source/cmTargetLinkLibrariesCommand.h +++ b/Source/cmTargetLinkLibrariesCommand.h @@ -62,6 +62,10 @@ public: " target_link_libraries(<target> [item1 [item2 [...]]]\n" " [[debug|optimized|general] <item>] ...)\n" "Specify libraries or flags to use when linking a given target. " + "The named <target> must have been created in the current directory " + "by a command such as add_executable or add_library. " + "The remaining arguments specify library names or flags." + "\n" "If a library name matches that of another target in the 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. " |