diff options
author | Brad King <brad.king@kitware.com> | 2020-08-25 17:58:21 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-08-25 17:58:28 (GMT) |
commit | 979a5bd4d19b1d79e6dd74c0a541c53f015b2c24 (patch) | |
tree | 47523b0c35dc546d29af6b11aeceb3f80053792b /Source/cmQtAutoGenInitializer.cxx | |
parent | 5e212cafba0f2266510841eea3f5c7b79fde9449 (diff) | |
parent | a48bb185c31ee17d9d8bb9f33ce7a00dd01f4fb5 (diff) | |
download | CMake-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.cxx | 4 |
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. |