Browse Source

ENH: Do not compute a path name for the import library if there is no import library. This simplifies tracking down problems with trying to create import libraries for MODULEs.

Brad King 19 years ago
parent
commit
7b68a64d12
1 changed files with 9 additions and 3 deletions
  1. 9 3
      Source/cmMakefileLibraryTargetGenerator.cxx

+ 9 - 3
Source/cmMakefileLibraryTargetGenerator.cxx

@@ -254,14 +254,20 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
     outpath += "/CMakeRelink.dir";
     cmSystemTools::MakeDirectory(outpath.c_str());
     outpath += "/";
-    outpathImp = outpath;
+    if(!targetNameImport.empty())
+      {
+      outpathImp = outpath;
+      }
     }
   else
     {
     outpath = this->Target->GetDirectory();
     outpath += "/";
-    outpathImp = this->Target->GetDirectory(0, true);
-    outpathImp += "/";
+    if(!targetNameImport.empty())
+      {
+      outpathImp = this->Target->GetDirectory(0, true);
+      outpathImp += "/";
+      }
     }
   std::string targetFullPath = outpath + targetName;
   std::string targetFullPathPDB = outpath + targetNamePDB;