diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-13 18:29:45 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-13 18:29:45 (GMT) |
commit | 6037d1ae66f82bc650fba5ec2a53370199fac380 (patch) | |
tree | 7e8f5690b28db7466239ac5f4c8e31491e633348 | |
parent | 29f7e505a50f502ab54c97f86d8b714184aed8ad (diff) | |
download | CMake-6037d1ae66f82bc650fba5ec2a53370199fac380.zip CMake-6037d1ae66f82bc650fba5ec2a53370199fac380.tar.gz CMake-6037d1ae66f82bc650fba5ec2a53370199fac380.tar.bz2 |
ENH: Handle non-existing variables
-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 b2a31c8..f7da5a2 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()); } |