diff options
author | Brad King <brad.king@kitware.com> | 2021-06-08 16:45:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-09 14:09:58 (GMT) |
commit | 526e2ef71c5b797818bbf232e21d0152a3938197 (patch) | |
tree | cbf166ad88496f7d0b070e7bc1f38bba073f4356 /Source/cmGlobalVisualStudio11Generator.h | |
parent | 794ad78abb8da517e59e25ea38f5c1edced1cf46 (diff) | |
download | CMake-526e2ef71c5b797818bbf232e21d0152a3938197.zip CMake-526e2ef71c5b797818bbf232e21d0152a3938197.tar.gz CMake-526e2ef71c5b797818bbf232e21d0152a3938197.tar.bz2 |
VS: Add support for add_custom_command DEPFILE
Transform the depfile into MSBuild `AdditionalInputs` content. Add
MSBuild Targets to update `AdditionalInputs` and the `.tlog` files for
future builds without actually modifying the `.vcxproj` file.
Fixes: #20286
Diffstat (limited to 'Source/cmGlobalVisualStudio11Generator.h')
-rw-r--r-- | Source/cmGlobalVisualStudio11Generator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio11Generator.h b/Source/cmGlobalVisualStudio11Generator.h index 6e409cf..b11905e 100644 --- a/Source/cmGlobalVisualStudio11Generator.h +++ b/Source/cmGlobalVisualStudio11Generator.h @@ -24,6 +24,13 @@ public: bool MatchesGeneratorName(const std::string& name) const override; + bool SupportsCustomCommandDepfile() const override { return true; } + + cm::optional<cmDepfileFormat> DepfileFormat() const override + { + return cmDepfileFormat::MSBuildAdditionalInputs; + } + protected: cmGlobalVisualStudio11Generator(cmake* cm, const std::string& name, std::string const& platformInGeneratorName); |