summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-01-21 00:17:17 (GMT)
committerBrad King <brad.king@kitware.com>2003-01-21 00:17:17 (GMT)
commitd4d04b46cd91624edc51ca602b15150e9cd850e6 (patch)
tree4e0d555e61a2e9e317ee716f2b7078809d4be20f /Source/cmMakefile.cxx
parent9cbb4fd308a82c5338d9452cf8e4c226ee447c99 (diff)
downloadCMake-d4d04b46cd91624edc51ca602b15150e9cd850e6.zip
CMake-d4d04b46cd91624edc51ca602b15150e9cd850e6.tar.gz
CMake-d4d04b46cd91624edc51ca602b15150e9cd850e6.tar.bz2
BUG: Fix for custom commands with spaces in paths. The arguments were not having spaces escaped.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 607819d..75878ce 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 += " ";
}