diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-11-20 15:10:16 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-11-21 14:44:39 (GMT) |
commit | 06df59b9308d74b3f8a5eada84cf2402dd22b434 (patch) | |
tree | 8f975d604487b8755febbdef2d953272012d4d35 /Source/cmMakefileTargetGenerator.cxx | |
parent | f8729ab3667c695a734df0164cca692393bb6810 (diff) | |
download | CMake-06df59b9308d74b3f8a5eada84cf2402dd22b434.zip CMake-06df59b9308d74b3f8a5eada84cf2402dd22b434.tar.gz CMake-06df59b9308d74b3f8a5eada84cf2402dd22b434.tar.bz2 |
cmCommonTargetGenerator: return forward linked target dirs too
This will be used for module forwarding in order to support
`$<TARGET_OBJECTS>` usage in source and link libraries calls.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 0c2a719..3ad0928 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -1440,9 +1440,9 @@ void cmMakefileTargetGenerator::WriteTargetDependRules() "# Targets to which this target links which contain Fortran sources.\n" "set(CMAKE_Fortran_TARGET_LINKED_INFO_FILES\n"; /* clang-format on */ - std::vector<std::string> const dirs = + auto const dirs = this->GetLinkedTargetDirectories("Fortran", this->GetConfigName()); - for (std::string const& d : dirs) { + for (std::string const& d : dirs.Direct) { *this->InfoFileStream << " \"" << d << "/DependInfo.cmake\"\n"; } *this->InfoFileStream << " )\n"; |