[cmake-commits] king committed cmLocalGenerator.cxx 1.160 1.161

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Oct 13 10:04:00 EDT 2006


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

Modified Files:
	cmLocalGenerator.cxx 
Log Message:
BUG: Do not try to compute the location of a non-library target for linking.


Index: cmLocalGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalGenerator.cxx,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -d -r1.160 -r1.161
--- cmLocalGenerator.cxx	10 Oct 2006 18:13:35 -0000	1.160
+++ cmLocalGenerator.cxx	13 Oct 2006 14:03:54 -0000	1.161
@@ -1629,7 +1629,9 @@
       {
       // Compute the proper name to use to link this library.
       cmTarget* tgt = this->GlobalGenerator->FindTarget(0, lib.c_str());
-      if(tgt)
+      if(tgt && (tgt->GetType() == cmTarget::STATIC_LIBRARY ||
+                 tgt->GetType() == cmTarget::SHARED_LIBRARY ||
+                 tgt->GetType() == cmTarget::MODULE_LIBRARY))
         {
         // This is a CMake target.  Ask the target for its real name.
         // Pass the full path to the target file but purposely leave



More information about the Cmake-commits mailing list