Browse Source

BUG: Make sure linking to a shared lib on windows uses import library and not the new realname.

Brad King 18 years ago
parent
commit
afad124313
1 changed files with 6 additions and 2 deletions
  1. 6 2
      Source/cmTarget.cxx

+ 6 - 2
Source/cmTarget.cxx

@@ -2093,13 +2093,17 @@ std::string cmTarget::NormalGetFullPath(const char* config, bool implib,
   fpath += "/";
 
   // Add the full name of the target.
-  if(realname)
+  if(implib)
+    {
+    fpath += this->GetFullName(config, true);
+    }
+  else if(realname)
     {
     fpath += this->NormalGetRealName(config);
     }
   else
     {
-    fpath += this->GetFullName(config, implib);
+    fpath += this->GetFullName(config, false);
     }
   return fpath;
 }