diff options
author | Brad King <brad.king@kitware.com> | 2010-12-15 17:18:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-12-15 17:18:59 (GMT) |
commit | 999ce0aa9c3fe2def05bde37ffbff627b2df8235 (patch) | |
tree | e6c4b7eeb72e6ea016e36162d5e0007e459dcc83 /Source/cmMakefile.cxx | |
parent | a14a8562ea5f321b0a8f6f61f4c457da298825c5 (diff) | |
download | CMake-999ce0aa9c3fe2def05bde37ffbff627b2df8235.zip CMake-999ce0aa9c3fe2def05bde37ffbff627b2df8235.tar.gz CMake-999ce0aa9c3fe2def05bde37ffbff627b2df8235.tar.bz2 |
Document target_link_libraries target scope (#11058)
The target_link_libraries command requires its first argument to be a
target in the current directory. Document this and update the error
message to be more specific. While at it, format the error message with
a call stack.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 4 |
1 files changed, 2 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()); } } |