summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-05-17 19:56:34 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-05-17 19:56:34 (GMT)
commit0ace9ada2c326e21f5defb02ff3a7a853123f035 (patch)
tree66db9de3c5c920fc5f8d0d9e14a3de890f1463cc
parentfdb358e9ccfe1d9f47344997e1304a5be0831ea1 (diff)
downloadCMake-0ace9ada2c326e21f5defb02ff3a7a853123f035.zip
CMake-0ace9ada2c326e21f5defb02ff3a7a853123f035.tar.gz
CMake-0ace9ada2c326e21f5defb02ff3a7a853123f035.tar.bz2
ENH: change ADDITIONAL_MAKE_CLEAN_FILES to work with spaces in the path and on windows with no spaces
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 1b61c9b..27dc4af 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<std::string> args;
+ cmSystemTools::ExpandListArgument(arg, args);
fout << "ADDITIONAL_MAKE_CLEAN_FILES = ";
- fout << additional_clean_files;
+ for(std::vector<std::string>::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");