From 79f22e84089e3f7a29cfea3275af6fafc5d3c091 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 29 Jan 2018 10:20:47 -0500 Subject: Makefile,Ninja: De-duplicate ComputeObjectFilenames method Move the method implementation up to `cmLocalCommonGenerator` to avoid duplicating it in each generator. --- Source/cmLocalCommonGenerator.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/cmLocalCommonGenerator.h') diff --git a/Source/cmLocalCommonGenerator.h b/Source/cmLocalCommonGenerator.h index a60573ca6e..7b8e6fe8ad 100644 --- a/Source/cmLocalCommonGenerator.h +++ b/Source/cmLocalCommonGenerator.h @@ -5,6 +5,7 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include #include #include "cmLocalGenerator.h" @@ -12,6 +13,7 @@ class cmGeneratorTarget; class cmGlobalGenerator; class cmMakefile; +class cmSourceFile; /** \class cmLocalCommonGenerator * \brief Common infrastructure for Makefile and Ninja local generators. @@ -30,6 +32,10 @@ public: std::string GetTargetFortranFlags(cmGeneratorTarget const* target, std::string const& config) override; + void ComputeObjectFilenames( + std::map& mapping, + cmGeneratorTarget const* gt = nullptr) override; + protected: std::string WorkingDirectory; -- cgit v1.2.1