mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
ENH: Handle non-existing variables
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user