STYLE: better error message, name the new manpages cmakecommands,

cmakecompat, cmakeprops and cmakemodules

Alex
This commit is contained in:
Alexander Neundorf
2007-07-13 12:03:13 -04:00
parent 2339b9f753
commit 1941b1c5d2
2 changed files with 12 additions and 11 deletions
+4 -3
View File
@@ -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;
}