Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit 6a0605c7 authored by Sebastian Holtermann's avatar Sebastian Holtermann
Browse files

Autogen: Always create AUTOMOC/AUTOUIC include directory

The **AUTOGEN** include directory was always passed to the compiler but
only generated on demand. To avoid compiler complaints when using
`-Wmissing-include-dirs` make sure the directory gets created always.

Closes #17147
parent 8fb12ce7
...@@ -727,6 +727,17 @@ bool cmQtAutoGenerators::RunAutogen() ...@@ -727,6 +727,17 @@ bool cmQtAutoGenerators::RunAutogen()
// moc file is included anywhere a moc_<filename>.cpp file is created and // moc file is included anywhere a moc_<filename>.cpp file is created and
// included in the mocs_compilation_$<CONFIG>.cpp file. // included in the mocs_compilation_$<CONFIG>.cpp file.
// Create AUTOGEN include directory
{
const std::string incDirAbs = cmSystemTools::CollapseCombinedPath(
this->AutogenBuildDir, this->AutogenIncludeDir);
if (!cmsys::SystemTools::MakeDirectory(incDirAbs)) {
this->LogError("AutoGen: Error: Could not create include directory " +
Quoted(incDirAbs));
return false;
}
}
// key = moc source filepath, value = moc output filepath // key = moc source filepath, value = moc output filepath
std::map<std::string, std::string> mocsIncluded; std::map<std::string, std::string> mocsIncluded;
std::map<std::string, std::string> mocsNotIncluded; std::map<std::string, std::string> mocsNotIncluded;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment