summaryrefslogtreecommitdiffstats
path: root/Tests/Module/WriteCompilerDetectionHeader/main_bare.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-06-30 10:18:21 (GMT)
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-07-01 13:31:02 (GMT)
commitaf11ea8d0c70d79282812bab58de795a86cecc56 (patch)
tree09c80870727ced9e75a343b2240c248a9d144c2b /Tests/Module/WriteCompilerDetectionHeader/main_bare.cpp
parent88fade3914629666b28260f2197c8f11c6737857 (diff)
downloadCMake-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