diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-13 14:29:45 -0400 |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-13 14:29:45 -0400 |
commit | 6037d1ae66f82bc650fba5ec2a53370199fac380 (patch) | |
tree | 7e8f5690b28db7466239ac5f4c8e31491e633348 /Source/cmCommandArgumentParserHelper.cxx | |
parent | 29f7e505a50f502ab54c97f86d8b714184aed8ad (diff) | |
download | cmake-6037d1ae66f82bc650fba5ec2a53370199fac380.tar.gz |
ENH: Handle non-existing variables
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.cxx')
-rw-r--r-- | Source/cmCommandArgumentParserHelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCommandArgumentParserHelper.cxx b/Source/cmCommandArgumentParserHelper.cxx index b2a31c8b78..f7da5a23ed 100644 --- a/Source/cmCommandArgumentParserHelper.cxx +++ b/Source/cmCommandArgumentParserHelper.cxx @@ -99,7 +99,7 @@ char* cmCommandArgumentParserHelper::ExpandVariable(const char* var) return this->AddString(ostr.str().c_str()); } const char* value = m_Makefile->GetDefinition(var); - if (m_EscapeQuotes) + if (m_EscapeQuotes && value) { return this->AddString(cmSystemTools::EscapeQuotes(value).c_str()); } |