diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-05-24 14:41:57 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-05-25 11:04:01 (GMT) |
commit | 76608c60d38e1cb93a77a430c1cef3ec85f2ce83 (patch) | |
tree | 26ae44d0d3c5b1b47c1306b218631696445511d0 /Source/cmQtAutoGenInitializer.h | |
parent | ced9a3b0bbc85fbd392b7323b18d00309a444ddc (diff) | |
download | CMake-76608c60d38e1cb93a77a430c1cef3ec85f2ce83.zip CMake-76608c60d38e1cb93a77a430c1cef3ec85f2ce83.tar.gz CMake-76608c60d38e1cb93a77a430c1cef3ec85f2ce83.tar.bz2 |
AutoMoc: Take AUTOMOC_BUILD_DIR into account in depfile
For the Ninja generator and targets that have AUTOMOC_BUILD_DIR set, the
AutoMoc target was always out of date.
That was because the depfile in the AutoMoc build directory was
referencing the wrong timestamp file:
target_autogen/timestamp: ...dependencies...
instead of
automoc_build_dir/timestamp: ...dependencies...
Use the relative path of the timestamp file as rule name for the
depfile. That path is calculated with AUTOMOC_BUILD_DIR taken into
account.
Fixes: #23547
Diffstat (limited to 'Source/cmQtAutoGenInitializer.h')
-rw-r--r-- | Source/cmQtAutoGenInitializer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenInitializer.h b/Source/cmQtAutoGenInitializer.h index 603c537..33749ba 100644 --- a/Source/cmQtAutoGenInitializer.h +++ b/Source/cmQtAutoGenInitializer.h @@ -178,6 +178,7 @@ private: { std::string Info; std::string Build; + std::string RelativeBuild; std::string Work; ConfigString Include; std::string IncludeGenExp; |