VS: Add support for using Intel oneAPI Fortran compiler in .vfproj files

Add a `fortran={ifort,ifx}` field to `CMAKE_GENERATOR_TOOLSET` to
specify which Intel Fortran compiler to use.

Fixes: #25427
This commit is contained in:
Brad King
2023-11-22 10:03:58 -05:00
parent 5c77facd78
commit 43d218d970
18 changed files with 105 additions and 2 deletions
+3
View File
@@ -795,6 +795,9 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(
target->GetType() == cmStateEnums::OBJECT_LIBRARY
? ".lib"
: cmSystemTools::GetFilenameLastExtension(targetNameFull);
if (cm::optional<std::string> fortran = gg->GetPlatformToolsetFortran()) {
fout << "\t\t\tUseCompiler=\"" << *fortran << "Compiler\"\n";
}
/* clang-format off */
fout <<
"\t\t\tTargetName=\"" << this->EscapeForXML(targetName) << "\"\n"