diff options
author | Brad King <brad.king@kitware.com> | 2018-01-29 15:20:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-29 15:51:22 (GMT) |
commit | 79f22e84089e3f7a29cfea3275af6fafc5d3c091 (patch) | |
tree | 5f83790921f2ea838e6ffdf169392a0b56faccb2 /Source/cmLocalCommonGenerator.h | |
parent | 92cd3d06772ada13935790d66927ab4663c7d628 (diff) | |
download | CMake-79f22e84089e3f7a29cfea3275af6fafc5d3c091.zip CMake-79f22e84089e3f7a29cfea3275af6fafc5d3c091.tar.gz CMake-79f22e84089e3f7a29cfea3275af6fafc5d3c091.tar.bz2 |
Makefile,Ninja: De-duplicate ComputeObjectFilenames method
Move the method implementation up to `cmLocalCommonGenerator`
to avoid duplicating it in each generator.
Diffstat (limited to 'Source/cmLocalCommonGenerator.h')
-rw-r--r-- | Source/cmLocalCommonGenerator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalCommonGenerator.h b/Source/cmLocalCommonGenerator.h index a60573c..7b8e6fe 100644 --- a/Source/cmLocalCommonGenerator.h +++ b/Source/cmLocalCommonGenerator.h @@ -5,6 +5,7 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include <map> #include <string> #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<cmSourceFile const*, std::string>& mapping, + cmGeneratorTarget const* gt = nullptr) override; + protected: std::string WorkingDirectory; |