summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-02-01 03:20:46 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-02-01 03:23:36 (GMT)
commit245a89d8b68525a769bdd4f71c184aa97fa498b3 (patch)
tree23a427ff47dd45d77d8d5a5f4056e1e49a670fad
parentaeb1b2ae3d1c6774c2c4175aa566085697eefe49 (diff)
downloadCMake-245a89d8b68525a769bdd4f71c184aa97fa498b3.zip
CMake-245a89d8b68525a769bdd4f71c184aa97fa498b3.tar.gz
CMake-245a89d8b68525a769bdd4f71c184aa97fa498b3.tar.bz2
cmMakefileTargetGenerator: make "target linked info" variable Fortran-specific
This variable is Fortran-specific, so clarify that through its name.
-rw-r--r--Source/cmDependsFortran.cxx2
-rw-r--r--Source/cmMakefileTargetGenerator.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx
index ac93c90..95f2a6b 100644
--- a/Source/cmDependsFortran.cxx
+++ b/Source/cmDependsFortran.cxx
@@ -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";
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 58cdb22..4f80edc 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -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());