mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
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
This commit is contained in:
1 parent
8fb12ce7a2
commit
6a0605c711
1 file changed
+11
@@ -727,6 +727,17 @@ bool cmQtAutoGenerators::RunAutogen()
|
||||
// moc file is included anywhere a moc_<filename>.cpp file is created and
|
||||
// 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
|
||||
std::map<std::string, std::string> mocsIncluded;
|
||||
std::map<std::string, std::string> mocsNotIncluded;
|
||||
|
||||
Reference in new issue
Block a user