cmMakefile: Simplify handling of CACHE_VARIABLES property.
This commit is contained in:
parent
1981c9718b
commit
021c4b6f2b
|
@ -4163,14 +4163,14 @@ const char *cmMakefile::GetProperty(const std::string& prop,
|
||||||
output = cmJoin(this->ListFileStack, ";");
|
output = cmJoin(this->ListFileStack, ";");
|
||||||
return output.c_str();
|
return output.c_str();
|
||||||
}
|
}
|
||||||
else if (prop == "VARIABLES" || prop == "CACHE_VARIABLES")
|
else if ( prop == "CACHE_VARIABLES" )
|
||||||
{
|
{
|
||||||
int cacheonly = 0;
|
output = cmJoin(this->GetState()->GetCacheEntryKeys(), ";");
|
||||||
if ( prop == "CACHE_VARIABLES" )
|
return output.c_str();
|
||||||
{
|
}
|
||||||
cacheonly = 1;
|
else if (prop == "VARIABLES")
|
||||||
}
|
{
|
||||||
output = cmJoin(this->GetDefinitions(cacheonly), ";");
|
output = cmJoin(this->GetDefinitions(), ";");
|
||||||
return output.c_str();
|
return output.c_str();
|
||||||
}
|
}
|
||||||
else if (prop == "MACROS")
|
else if (prop == "MACROS")
|
||||||
|
|
Loading…
Reference in New Issue