diff options
author | Brian Bassett <bbassett@tibco.com> | 2010-06-09 02:19:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-01-06 13:06:30 (GMT) |
commit | f661b953331f891ced0bbaff5e19f991a66e138b (patch) | |
tree | f5e04fb444c9c50a94986265b8eb7cd261ce9224 /Source | |
parent | ddf0de132b680e5794406f4d698a0e5262926dd8 (diff) | |
download | CMake-f661b953331f891ced0bbaff5e19f991a66e138b.zip CMake-f661b953331f891ced0bbaff5e19f991a66e138b.tar.gz CMake-f661b953331f891ced0bbaff5e19f991a66e138b.tar.bz2 |
VS: Fix linking of Fortran-only DLL projects (#10803)
Emit the LinkDLL attribute of VFLinkerTool for Fortran DLLs.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 136c177..3e66574 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/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: |