BUG: Existing projects have cache entries with the same name as the command they adjust (VTK_WRAP_JAVA in VTK, for example). Setting the command name as a variable is too dangerous.
This commit is contained in:
parent
e89d9d3378
commit
dca0fd0859
|
@ -390,7 +390,6 @@ void cmMakefile::AddCommand(cmCommand* wg)
|
||||||
{
|
{
|
||||||
std::string name = wg->GetName();
|
std::string name = wg->GetName();
|
||||||
m_Commands.insert( RegisteredCommandsMap::value_type(name, wg));
|
m_Commands.insert( RegisteredCommandsMap::value_type(name, wg));
|
||||||
this->AddDefinition(name.c_str(), true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the make file
|
// Set the make file
|
||||||
|
|
Loading…
Reference in New Issue