diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-01-11 23:49:58 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-01-12 23:00:44 (GMT) |
commit | f27c5852b0d1e37fb27bd1da1e7295b5f1fc963d (patch) | |
tree | 82396d4d0b2e3391eb3ef6595bd2b00886ea1b6d /Source/cmQtAutoGeneratorInitializer.cxx | |
parent | d7d2cb48c69e2a9da72a8baf188f02b81ec9c34f (diff) | |
download | CMake-f27c5852b0d1e37fb27bd1da1e7295b5f1fc963d.zip CMake-f27c5852b0d1e37fb27bd1da1e7295b5f1fc963d.tar.gz CMake-f27c5852b0d1e37fb27bd1da1e7295b5f1fc963d.tar.bz2 |
Autogen: Initializer: Add old settings file to clean files
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r-- | Source/cmQtAutoGeneratorInitializer.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx index 6d4c302..825eba0 100644 --- a/Source/cmQtAutoGeneratorInitializer.cxx +++ b/Source/cmQtAutoGeneratorInitializer.cxx @@ -674,6 +674,14 @@ void cmQtAutoGeneratorInitializer::InitializeAutogenTarget( const std::string qtMajorVersion = GetQtMajorVersion(target); std::vector<std::string> autogenOutputFiles; + // Remove old settings on cleanup + { + std::string fname = GetAutogenTargetFilesDir(target); + fname += "/AutogenOldSettings.cmake"; + makefile->AppendProperty("ADDITIONAL_MAKE_CLEAN_FILES", fname.c_str(), + false); + } + // Create autogen target build directory and add it to the clean files cmSystemTools::MakeDirectory(autogenBuildDir); makefile->AppendProperty("ADDITIONAL_MAKE_CLEAN_FILES", |