diff options
| author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-06-30 10:18:21 (GMT) |
|---|---|---|
| committer | Alexey Edelev <semlanik@gmail.com> | 2021-07-23 13:47:28 (GMT) |
| commit | 4bda03370d484ce787c0c3632eaa5a18cffa750c (patch) | |
| tree | 0136505218bd4f72431befada0650032cb7aba3c /Tests/Module/WriteCompilerDetectionHeader | |
| parent | 41e9953143c37dfa50be30ff4e34c826e2f55c0b (diff) | |
| download | CMake-4bda03370d484ce787c0c3632eaa5a18cffa750c.zip CMake-4bda03370d484ce787c0c3632eaa5a18cffa750c.tar.gz CMake-4bda03370d484ce787c0c3632eaa5a18cffa750c.tar.bz2 | |
AutoGen: Fix needless compilation of mocs_compilation.cpp
For an AUTOMOC'ed target foo, when depfiles are used, there are the
following dependencies:
foo_autogen -> foo_autogen/timestamp
foo_autogen/mocs_compilation.cpp -> foo_autogen/timestamp
The first is used to trigger AUTOGEN.
The second erroneously triggers a recompilation of
mocs_compilation.cpp when any source file of target foo is touched.
Remove the latter dependency and replace it with an order-only
dependency from foo_autogen/mocs_compilation.cpp to
foo_autogen_timestamp_deps.
That is achieved by making mocs_compilation.cpp or its
per-configuration variants byproduct(s) of the timestamp file.
Fixes: #22338
Diffstat (limited to 'Tests/Module/WriteCompilerDetectionHeader')
0 files changed, 0 insertions, 0 deletions
