diff options
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r-- | Source/cmQtAutoGeneratorInitializer.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx index bc75c59..b12045c 100644 --- a/Source/cmQtAutoGeneratorInitializer.cxx +++ b/Source/cmQtAutoGeneratorInitializer.cxx @@ -122,8 +122,6 @@ static void SetupSourceFiles(cmGeneratorTarget const* target, cmsys::SystemTools::GetFilenameWithoutLastExtension(absFile); rccOutputFile += ".cpp"; - makefile->AppendProperty("ADDITIONAL_MAKE_CLEAN_FILES", - rccOutputFile.c_str(), false); makefile->GetOrCreateSource(rccOutputFile, true); newRccFiles.push_back(rccOutputFile); @@ -661,9 +659,6 @@ void cmQtAutoGeneratorInitializer::InitializeAutogenSources( const std::string mocCppFile = GetAutogenTargetBuildDir(target) + "moc_compilation.cpp"; makefile->GetOrCreateSource(mocCppFile, true); - makefile->AppendProperty("ADDITIONAL_MAKE_CLEAN_FILES", mocCppFile.c_str(), - false); - target->AddSource(mocCppFile); } } @@ -686,6 +681,9 @@ void cmQtAutoGeneratorInitializer::InitializeAutogenTarget( // Create autogen target build directory cmSystemTools::MakeDirectory(autogenBuildDir); + // Remove entire autogen build directory on clean + makefile->AppendProperty("ADDITIONAL_MAKE_CLEAN_FILES", + autogenBuildDir.c_str(), false); // Create autogen target includes directory and // add it to the origin target INCLUDE_DIRECTORIES |