ENH: fix sort to work with CMP0007
This commit is contained in:
parent
66b01e254f
commit
2a53075ed8
|
@ -544,6 +544,12 @@ bool cmListCommand
|
||||||
std::vector<std::string>::iterator it;
|
std::vector<std::string>::iterator it;
|
||||||
for ( it = varArgsExpanded.begin(); it != varArgsExpanded.end(); ++ it )
|
for ( it = varArgsExpanded.begin(); it != varArgsExpanded.end(); ++ it )
|
||||||
{
|
{
|
||||||
|
if(value.size() == 0 &&
|
||||||
|
this->Makefile->GetPolicyStatus(cmPolicies::CMP0007) ==
|
||||||
|
cmPolicies::NEW)
|
||||||
|
{
|
||||||
|
value += ";";
|
||||||
|
}
|
||||||
if (value.size())
|
if (value.size())
|
||||||
{
|
{
|
||||||
value += ";";
|
value += ";";
|
||||||
|
|
Loading…
Reference in New Issue