Autogen: Add per-config suffix to moc_predefs.h

moc_predefs.h is generated using per-config -D definitions
and therefore must be configuration specific as well.
This commit is contained in:
Sebastian Holtermann 2017-08-05 12:27:11 +02:00
parent e2c9cf12d1
commit ddd6f0db1e

View File

@ -647,7 +647,9 @@ void cmQtAutoGenerators::Init(cmMakefile* makefile)
// Moc predefs file
if (!this->MocPredefsCmd.empty()) {
this->MocPredefsFileRel = "moc_predefs.h";
this->MocPredefsFileRel = "moc_predefs";
this->MocPredefsFileRel += this->ConfigSuffix;
this->MocPredefsFileRel += ".h";
this->MocPredefsFileAbs = cmSystemTools::CollapseCombinedPath(
this->AutogenBuildDir, this->MocPredefsFileRel);
}