mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Revert "load_command: Deprecate and document pending removal"
This reverts commit d2d43986e7.
We will add a policy to remove the command more gracefully.
This commit is contained in:
@@ -47,7 +47,7 @@ public:
|
||||
*/
|
||||
virtual const char* GetTerseDocumentation() const
|
||||
{
|
||||
return "Deprecated. Use macro() or function() instead.";
|
||||
return "Load a command into a running CMake.";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -56,13 +56,6 @@ public:
|
||||
virtual const char* GetFullDocumentation() const
|
||||
{
|
||||
return
|
||||
"This command will be removed in CMake 3.0. "
|
||||
"It works only when the target architecture matches the "
|
||||
"running CMake binary. "
|
||||
"Use macro() or function() to add commands. "
|
||||
"Use execute_process() to run advanced computations "
|
||||
"in external processes."
|
||||
"\n"
|
||||
" load_command(COMMAND_NAME <loc1> [loc2 ...])\n"
|
||||
"The given locations are searched for a library whose name is "
|
||||
"cmCOMMAND_NAME. If found, it is loaded as a module and the command "
|
||||
@@ -74,12 +67,6 @@ public:
|
||||
"Otherwise the variable will not be set.";
|
||||
}
|
||||
|
||||
/** This command is kept for compatibility with older CMake versions. */
|
||||
virtual bool IsDiscouraged() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
cmTypeMacro(cmLoadCommandCommand, cmCommand);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user