summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenInitializer.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-08-25 17:58:21 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-08-25 17:58:28 (GMT)
commit979a5bd4d19b1d79e6dd74c0a541c53f015b2c24 (patch)
tree47523b0c35dc546d29af6b11aeceb3f80053792b /Source/cmQtAutoGenInitializer.cxx
parent5e212cafba0f2266510841eea3f5c7b79fde9449 (diff)
parenta48bb185c31ee17d9d8bb9f33ce7a00dd01f4fb5 (diff)
downloadCMake-979a5bd4d19b1d79e6dd74c0a541c53f015b2c24.zip
CMake-979a5bd4d19b1d79e6dd74c0a541c53f015b2c24.tar.gz
CMake-979a5bd4d19b1d79e6dd74c0a541c53f015b2c24.tar.bz2
Merge topic 'automoc_timestamp_nmc_fix'
a48bb185c3 AutoGen: Fix moc and uic dependencies when building Qt itself Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5153
Diffstat (limited to 'Source/cmQtAutoGenInitializer.cxx')
-rw-r--r--Source/cmQtAutoGenInitializer.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenInitializer.cxx b/Source/cmQtAutoGenInitializer.cxx
index 06957b0..8c2cacd 100644
--- a/Source/cmQtAutoGenInitializer.cxx
+++ b/Source/cmQtAutoGenInitializer.cxx
@@ -1223,9 +1223,13 @@ bool cmQtAutoGenInitializer::InitAutogenTarget()
if (this->Moc.ExecutableTarget != nullptr) {
dependencies.push_back(this->Moc.ExecutableTarget->Target->GetName());
+ } else if (!this->Moc.Executable.empty()) {
+ dependencies.push_back(this->Moc.Executable);
}
if (this->Uic.ExecutableTarget != nullptr) {
dependencies.push_back(this->Uic.ExecutableTarget->Target->GetName());
+ } else if (!this->Uic.Executable.empty()) {
+ dependencies.push_back(this->Uic.Executable);
}
// Create the custom command that outputs the timestamp file.