[cmake-commits] alex committed cmAddLibraryCommand.cxx 1.31 1.32

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Jul 13 12:03:15 EDT 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv31963/Source

Modified Files:
	cmAddLibraryCommand.cxx 
Log Message:

STYLE: better error message, name the new manpages cmakecommands,
cmakecompat, cmakeprops and cmakemodules

Alex


Index: cmAddLibraryCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmAddLibraryCommand.cxx,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- cmAddLibraryCommand.cxx	26 Jun 2007 17:05:26 -0000	1.31
+++ cmAddLibraryCommand.cxx	13 Jul 2007 16:03:13 -0000	1.32
@@ -89,9 +89,10 @@
     {
     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;
     }



More information about the Cmake-commits mailing list