From 245a89d8b68525a769bdd4f71c184aa97fa498b3 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 31 Jan 2023 22:20:46 -0500 Subject: cmMakefileTargetGenerator: make "target linked info" variable Fortran-specific This variable is Fortran-specific, so clarify that through its name. --- Source/cmDependsFortran.cxx | 2 +- Source/cmMakefileTargetGenerator.cxx | 2 +- 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 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 dirs = this->GetLinkedTargetDirectories(this->GetConfigName()); -- cgit v0.12