diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-04-15 12:13:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-15 16:17:31 (GMT) |
commit | d67cc4882d54a18abbd5d01365ce1fc72d702a0e (patch) | |
tree | d609494ba1f13292a45d92630b47c4094ad2cc82 /Source/cmGlobalXCodeGenerator.h | |
parent | 498b916cdd96330baa33bc10667b43cbb78674d4 (diff) | |
download | CMake-d67cc4882d54a18abbd5d01365ce1fc72d702a0e.zip CMake-d67cc4882d54a18abbd5d01365ce1fc72d702a0e.tar.gz CMake-d67cc4882d54a18abbd5d01365ce1fc72d702a0e.tar.bz2 |
Xcode: Add support of DEPFILE for add_custom_command
Issue: #20286
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.h')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h index 1ab56e2..2406472 100644 --- a/Source/cmGlobalXCodeGenerator.h +++ b/Source/cmGlobalXCodeGenerator.h @@ -14,6 +14,7 @@ #include <cm/string_view> #include "cmGlobalGenerator.h" +#include "cmTransformDepfile.h" #include "cmXCodeObject.h" class cmCustomCommand; @@ -111,6 +112,18 @@ public: bool ShouldStripResourcePath(cmMakefile*) const override; + /** + * Used to determine if this generator supports DEPFILE option. + */ + bool SupportsCustomCommandDepfile() const override + { + return this->XcodeBuildSystem >= BuildSystem::Twelve; + } + virtual cm::optional<cmDepfileFormat> DepfileFormat() const override + { + return cmDepfileFormat::GccDepfile; + } + bool SetSystemName(std::string const& s, cmMakefile* mf) override; bool SetGeneratorToolset(std::string const& ts, bool build, cmMakefile* mf) override; |