From d4d04b46cd91624edc51ca602b15150e9cd850e6 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 20 Jan 2003 19:17:17 -0500 Subject: [PATCH] BUG: Fix for custom commands with spaces in paths. The arguments were not having spaces escaped. --- Source/cmMakefile.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 607819d8c..75878cebc 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -416,7 +416,9 @@ void cmMakefile::AddCustomCommand(const char* source, for (i = 0; i < commandArgs.size(); ++i) { - combinedArgs += cmSystemTools::EscapeSpaces(commandArgs[i].c_str()); + expandC = commandArgs[i].c_str(); + this->ExpandVariablesInString(expandC); + combinedArgs += cmSystemTools::EscapeSpaces(expandC.c_str()); combinedArgs += " "; }