cmMakefileTargetGenerator: make "target linked info" variable Fortran-specific

This variable is Fortran-specific, so clarify that through its name.
This commit is contained in:
Ben Boeckel
2023-01-31 22:20:46 -05:00
parent aeb1b2ae3d
commit 245a89d8b6
2 changed files with 2 additions and 2 deletions

View File

@@ -243,7 +243,7 @@ void cmDependsFortran::LocateModules()
// Load information about other targets.
cmMakefile* mf = this->LocalGenerator->GetMakefile();
std::vector<std::string> infoFiles;
mf->GetDefExpandList("CMAKE_TARGET_LINKED_INFO_FILES", infoFiles);
mf->GetDefExpandList("CMAKE_Fortran_TARGET_LINKED_INFO_FILES", infoFiles);
for (std::string const& i : infoFiles) {
std::string targetDir = cmSystemTools::GetFilenamePath(i);
std::string fname = targetDir + "/fortran.internal";

View File

@@ -1495,7 +1495,7 @@ void cmMakefileTargetGenerator::WriteTargetDependRules()
*this->InfoFileStream
<< "\n"
"# Targets to which this target links which contain Fortran sources.\n"
"set(CMAKE_TARGET_LINKED_INFO_FILES\n";
"set(CMAKE_Fortran_TARGET_LINKED_INFO_FILES\n";
/* clang-format on */
std::vector<std::string> dirs =
this->GetLinkedTargetDirectories(this->GetConfigName());