ENH: Each cmake command now adds a cmake variable of its own name, set

to ON.  This allows constructs in CMakeLists.txt files like:
IF(FOO_COMMAND)
  FOO_COMMAND()
ENDIF(FOO_COMMAND)
This provides the option to add CMake commands for extra functionality
without breaking compatability with earlier versions of CMake.
This commit is contained in:
Brad King 2001-12-17 16:19:27 -05:00
parent 213582db3c
commit 1b6ca3eba0
1 changed files with 1 additions and 0 deletions

View File

@ -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