mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
Autogen: Check .moc header name against SKIP list
When encountering an #include "FOO.moc" statement where FOO.hpp was chosen over FOO.cpp as the moc source, the FOO.hpp name was not checked against the moc SKIP list.
This commit is contained in:
committed by
Brad King
parent
372de3f803
commit
83d8aceeb3
@@ -1003,7 +1003,7 @@ bool cmQtAutoGenerators::MocParseSourceContent(
|
||||
// In relaxed mode try to find a header instead but issue a warning
|
||||
const std::string headerToMoc =
|
||||
this->MocFindHeader(scannedFileAbsPath, incSubDir + incBasename);
|
||||
if (!headerToMoc.empty()) {
|
||||
if (!headerToMoc.empty() && !this->MocSkip(headerToMoc)) {
|
||||
// This is for KDE4 compatibility:
|
||||
fileToMoc = headerToMoc;
|
||||
if (!requiresMoc && (incBasename == scannedFileBasename)) {
|
||||
|
||||
Reference in New Issue
Block a user