diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-01-14 10:22:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-01-28 16:16:11 (GMT) |
commit | aebfbcaa4650ec6f540cc53b96d44cdfb87d82a1 (patch) | |
tree | 31c33894501d71ceb049b2293daecb4a7bf4ede0 /Source/cmQtAutoGenInitializer.h | |
parent | f765fdea032b820f82789485172616c1456fb815 (diff) | |
download | CMake-aebfbcaa4650ec6f540cc53b96d44cdfb87d82a1.zip CMake-aebfbcaa4650ec6f540cc53b96d44cdfb87d82a1.tar.gz CMake-aebfbcaa4650ec6f540cc53b96d44cdfb87d82a1.tar.bz2 |
AutoGen: Use depfiles for the XXX_autogen ninja targets
The XXX_autogen targets are implemented as utility commands, which
means they always run, even if there weren't any changes.
For the Ninja generator and Qt >= 5.15 we're taking a different
approach: This commit adds custom commands that create
XXX_autogen/timestamp files. Those custom commands have a depfile
assigned that is generated from the depfiles that were created by moc.
The XXX_autogen targets merely wrap the XXX_autogen/timestamp custom
commands.
Fixes: #18749
Diffstat (limited to 'Source/cmQtAutoGenInitializer.h')
-rw-r--r-- | Source/cmQtAutoGenInitializer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenInitializer.h b/Source/cmQtAutoGenInitializer.h index 8cedf14..48ec1a0 100644 --- a/Source/cmQtAutoGenInitializer.h +++ b/Source/cmQtAutoGenInitializer.h @@ -191,6 +191,8 @@ private: bool DependOrigin = false; std::set<std::string> DependFiles; std::set<cmTarget*> DependTargets; + std::string DepFile; + std::string DepFileRuleName; // Sources to process std::unordered_map<cmSourceFile*, MUFileHandle> Headers; std::unordered_map<cmSourceFile*, MUFileHandle> Sources; |