From 0ace9ada2c326e21f5defb02ff3a7a853123f035 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 17 May 2004 15:56:34 -0400 Subject: [PATCH] ENH: change ADDITIONAL_MAKE_CLEAN_FILES to work with spaces in the path and on windows with no spaces --- Source/cmLocalUnixMakefileGenerator.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 1b61c9b39..27dc4af65 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -645,11 +645,18 @@ void cmLocalUnixMakefileGenerator::OutputTargetRules(std::ostream& fout) } } fout << "\n\n"; - const char * additional_clean_files = m_Makefile->GetDefinition("ADDITIONAL_MAKE_CLEAN_FILES"); + const char * additional_clean_files = + m_Makefile->GetDefinition("ADDITIONAL_MAKE_CLEAN_FILES"); if ( additional_clean_files && strlen(additional_clean_files) > 0 ) { + std::string arg = additional_clean_files; + std::vector args; + cmSystemTools::ExpandListArgument(arg, args); fout << "ADDITIONAL_MAKE_CLEAN_FILES = "; - fout << additional_clean_files; + for(std::vector::iterator i = args.begin(); i != args.end(); ++i) + { + fout << this->ConvertToRelativeOutputPath(i->c_str()) << " "; + } fout << "\n\n"; } const char * qt_files = m_Makefile->GetDefinition("GENERATED_QT_FILES");