diff options
| author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-06-30 10:18:21 (GMT) |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-07-01 13:31:02 (GMT) |
| commit | af11ea8d0c70d79282812bab58de795a86cecc56 (patch) | |
| tree | 09c80870727ced9e75a343b2240c248a9d144c2b /Tests/Module/WriteCompilerDetectionHeader/main_bare.cpp | |
| parent | 88fade3914629666b28260f2197c8f11c6737857 (diff) | |
| download | CMake-af11ea8d0c70d79282812bab58de795a86cecc56.zip CMake-af11ea8d0c70d79282812bab58de795a86cecc56.tar.gz CMake-af11ea8d0c70d79282812bab58de795a86cecc56.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/main_bare.cpp')
0 files changed, 0 insertions, 0 deletions
