mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-11 08:39:26 -05:00
Merge topic 'autogen-create-include-dir'
6a0605c7 Autogen: Always create AUTOMOC/AUTOUIC include directory
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1113
This commit is contained in:
@@ -729,6 +729,17 @@ bool cmQtAutoGenerators::RunAutogen()
|
||||
// moc file is included anywhere a moc_<filename>.cpp file is created and
|
||||
// included in the mocs_compilation.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