mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-06 06:38:37 -06:00
Merge topic 'vfproj-object-libs-fix'
7a411dfb VS: Fix OBJECT library support in Intel Fortran projects
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !636
This commit is contained in:
@@ -746,11 +746,13 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(
|
||||
|
||||
if (this->FortranProject) {
|
||||
// Intel Fortran >= 15.0 uses TargetName property.
|
||||
std::string targetNameFull = target->GetFullName(configName);
|
||||
std::string targetName =
|
||||
std::string const targetNameFull = target->GetFullName(configName);
|
||||
std::string const targetName =
|
||||
cmSystemTools::GetFilenameWithoutLastExtension(targetNameFull);
|
||||
std::string targetExt =
|
||||
cmSystemTools::GetFilenameLastExtension(targetNameFull);
|
||||
std::string const targetExt =
|
||||
target->GetType() == cmStateEnums::OBJECT_LIBRARY
|
||||
? ".lib"
|
||||
: cmSystemTools::GetFilenameLastExtension(targetNameFull);
|
||||
/* clang-format off */
|
||||
fout <<
|
||||
"\t\t\tTargetName=\"" << this->EscapeForXML(targetName) << "\"\n"
|
||||
|
||||
Reference in New Issue
Block a user