diff options
author | Brad King <brad.king@kitware.com> | 2017-08-10 13:21:35 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-08-10 13:21:42 (GMT) |
commit | 03469889f6ff62e1cdfd69eba316fd943746f17d (patch) | |
tree | 865d64c49e542c3118fb3f51f5404aba4d800596 /Source | |
parent | af06befe6624dc07abc14d5f074b33f177f607db (diff) | |
parent | 6a0605c71126b15e607cc57d3e589ffc693f5c0e (diff) | |
download | CMake-03469889f6ff62e1cdfd69eba316fd943746f17d.zip CMake-03469889f6ff62e1cdfd69eba316fd943746f17d.tar.gz CMake-03469889f6ff62e1cdfd69eba316fd943746f17d.tar.bz2 |
Merge topic 'autogen-create-include-dir'
6a0605c7 Autogen: Always create AUTOMOC/AUTOUIC include directory
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1113
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index bdf682a..6ea1c72 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -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; |