Explorar el Código

VS: Fix linking of Fortran-only DLL projects (#10803)

Emit the LinkDLL attribute of VFLinkerTool for Fortran DLLs.
Brian Bassett hace 15 años
padre
commit
f661b95333
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      Source/cmLocalVisualStudio7Generator.cxx

+ 6 - 1
Source/cmLocalVisualStudio7Generator.cxx

@@ -1011,7 +1011,12 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
     temp += "/";
     temp += targetNameImport;
     fout << "\t\t\t\tImportLibrary=\""
-         << this->ConvertToXMLOutputPathSingle(temp.c_str()) << "\"/>\n";
+         << this->ConvertToXMLOutputPathSingle(temp.c_str()) << "\"";
+    if(this->FortranProject)
+      {
+      fout << "\n\t\t\t\tLinkDLL=\"true\"";
+      }
+    fout << "/>\n";
     }
     break;
     case cmTarget::EXECUTABLE: