summaryrefslogtreecommitdiffstats
path: root/Source/cmAddLibraryCommand.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-13 16:03:13 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-13 16:03:13 (GMT)
commit1941b1c5d296757315cc894a3b054740b8ea07cd (patch)
tree15d61697c693bf39afae7c0c6a710879f044e298 /Source/cmAddLibraryCommand.cxx
parent2339b9f753b0a4503c5e0dbb27b9bf75fa4840f7 (diff)
downloadCMake-1941b1c5d296757315cc894a3b054740b8ea07cd.zip
CMake-1941b1c5d296757315cc894a3b054740b8ea07cd.tar.gz
CMake-1941b1c5d296757315cc894a3b054740b8ea07cd.tar.bz2
STYLE: better error message, name the new manpages cmakecommands,
cmakecompat, cmakeprops and cmakemodules Alex
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r--Source/cmAddLibraryCommand.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index bbfa5ce..36d636b 100644
--- a/Source/cmAddLibraryCommand.cxx
+++ b/Source/cmAddLibraryCommand.cxx
@@ -89,9 +89,10 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
{
std::string msg = "ADD_LIBRARY for library ";
msg += args[0];
- msg += " is used with the SHARED or MODULE option, but the target "
- "platform supports only STATIC libraries. Building it STATIC instead. "
- "This may lead to problems.";
+ msg += " is used with the ";
+ msg += type==cmTarget::SHARED_LIBRARY ? "SHARED" : "MODULE";
+ msg += " option, but the target platform supports only STATIC libraries. "
+ "Building it STATIC instead. This may lead to problems.";
cmSystemTools::Message(msg.c_str() ,"Warning");
type = cmTarget::STATIC_LIBRARY;
}