Fix mark as advanced. Now it should work properly
This commit is contained in:
parent
628625af72
commit
895f8c42c0
@ -48,6 +48,7 @@ bool cmMarkAsAdvancedCommand::InitialPass(std::vector<std::string> const& argsIn
|
|||||||
{
|
{
|
||||||
m_Makefile->AddCacheDefinition(variable.c_str(), 0, 0,
|
m_Makefile->AddCacheDefinition(variable.c_str(), 0, 0,
|
||||||
cmCacheManager::UNINITIALIZED);
|
cmCacheManager::UNINITIALIZED);
|
||||||
|
overwrite = true;
|
||||||
}
|
}
|
||||||
it.Find(variable.c_str());
|
it.Find(variable.c_str());
|
||||||
if ( it.IsAtEnd() )
|
if ( it.IsAtEnd() )
|
||||||
@ -55,7 +56,10 @@ bool cmMarkAsAdvancedCommand::InitialPass(std::vector<std::string> const& argsIn
|
|||||||
cmSystemTools::Error("This should never happen...");
|
cmSystemTools::Error("This should never happen...");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
it.SetProperty("ADVANCED", value);
|
if ( overwrite )
|
||||||
|
{
|
||||||
|
it.SetProperty("ADVANCED", value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user