mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 15:18:26 -05:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user