mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 00:59:19 -06:00
ENH: handle empty variables
This commit is contained in:
@@ -91,6 +91,10 @@ char* cmCommandArgumentParserHelper::ExpandSpecialVariable(const char* key, cons
|
||||
|
||||
char* cmCommandArgumentParserHelper::ExpandVariable(const char* var)
|
||||
{
|
||||
if(!var)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if(this->FileName && strcmp(var, "CMAKE_CURRENT_LIST_FILE") == 0)
|
||||
{
|
||||
return this->AddString(this->FileName);
|
||||
|
||||
Reference in New Issue
Block a user