mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
Autogen: Don't use AUTOMOC_MOC_OPTIONS in moc-predefs command
Closes #17418
This commit is contained in:
@@ -1392,9 +1392,13 @@ bool cmQtAutoGenerators::MocGenerateAll()
|
||||
{
|
||||
// Compose command
|
||||
std::vector<std::string> cmd = this->MocPredefsCmd;
|
||||
// Add options
|
||||
cmd.insert(cmd.end(), this->MocAllOptions.begin(),
|
||||
this->MocAllOptions.end());
|
||||
// Add includes
|
||||
cmd.insert(cmd.end(), this->MocIncludes.begin(),
|
||||
this->MocIncludes.end());
|
||||
// Add definitions
|
||||
for (std::string const& def : this->MocDefinitions) {
|
||||
cmd.push_back("-D" + def);
|
||||
}
|
||||
// Execute command
|
||||
if (!this->RunCommand(cmd, output)) {
|
||||
this->LogCommandError(cmQtAutoGen::MOC,
|
||||
|
||||
Reference in New Issue
Block a user