diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 81b4b3323..ac48b82ab 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -390,6 +390,7 @@ void cmMakefile::AddCommand(cmCommand* wg) { std::string name = wg->GetName(); m_Commands.insert( RegisteredCommandsMap::value_type(name, wg)); + this->AddDefinition(name.c_str(), true); } // Set the make file