diff options
author | Brad King <brad.king@kitware.com> | 2023-11-27 13:36:28 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-11-27 13:36:44 (GMT) |
commit | 4b2960b1f3e214dd30b32925b00eef5f64b99b71 (patch) | |
tree | 106a8dc355a73556244ba1701b38faab5181a240 /Source/cmComputeLinkInformation.h | |
parent | 66149dd1a93f4f22f68d7465de74b14d7c03f89d (diff) | |
parent | beb1393f8f29302197b80741bec41a13b7f207c7 (diff) | |
download | CMake-4b2960b1f3e214dd30b32925b00eef5f64b99b71.zip CMake-4b2960b1f3e214dd30b32925b00eef5f64b99b71.tar.gz CMake-4b2960b1f3e214dd30b32925b00eef5f64b99b71.tar.bz2 |
Merge topic 'fortran-objects-as-sources-fix' into release-3.28
beb1393f8f Merge branch 'revert-exact-collation-depends-3.27' into fortran-objects-as-sources-fix
a033dce326 Makefiles: provide, but do not consume, "forward linked" target dirs
7cd0adab1b cmCommonTargetGenerator: use modules from linked object-referenced targets
1175f1c874 LinkItem: track `cmSourceFile` instances for external objects
d2fa56772f Ninja: support "forwarding" modules from other targets
ec1e589bec Ninja: Revert exact collation dependencies for 3.27
06df59b930 cmCommonTargetGenerator: return forward linked target dirs too
f8729ab366 cmLocalUnixMakefileGenerator3: handle object-referencing Fortran modules
...
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8989
Diffstat (limited to 'Source/cmComputeLinkInformation.h')
-rw-r--r-- | Source/cmComputeLinkInformation.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmComputeLinkInformation.h b/Source/cmComputeLinkInformation.h index 1e8556d..3ee995f 100644 --- a/Source/cmComputeLinkInformation.h +++ b/Source/cmComputeLinkInformation.h @@ -22,6 +22,7 @@ class cmGeneratorTarget; class cmGlobalGenerator; class cmMakefile; class cmOrderDirectories; +class cmSourceFile; class cmake; /** \class cmComputeLinkInformation @@ -51,16 +52,21 @@ public: { Item(BT<std::string> v, ItemIsPath isPath, cmGeneratorTarget const* target = nullptr, + cmSourceFile const* objectSource = nullptr, FeatureDescriptor const* feature = nullptr) : Value(std::move(v)) , IsPath(isPath) , Target(target) + , ObjectSource(objectSource) , Feature(feature) { } BT<std::string> Value; ItemIsPath IsPath = ItemIsPath::No; cmGeneratorTarget const* Target = nullptr; + // The source file representing the external object (used when linking + // `$<TARGET_OBJECTS>`) + cmSourceFile const* ObjectSource = nullptr; bool HasFeature() const { return this->Feature != nullptr; } const std::string& GetFeatureName() const |