mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 19:43:23 +08:00
cmCommand refactor: cmSubdirDependsCommand
This commit is contained in:
@@ -320,8 +320,7 @@ void GetProjectCommands(cmState* state)
|
|||||||
"output_required_files", cmOutputRequiredFilesCommand, cmPolicies::CMP0032,
|
"output_required_files", cmOutputRequiredFilesCommand, cmPolicies::CMP0032,
|
||||||
"The output_required_files command should not be called; see CMP0032.");
|
"The output_required_files command should not be called; see CMP0032.");
|
||||||
state->AddDisallowedCommand(
|
state->AddDisallowedCommand(
|
||||||
"subdir_depends", cm::make_unique<cmSubdirDependsCommand>(),
|
"subdir_depends", cmSubdirDependsCommand, cmPolicies::CMP0029,
|
||||||
cmPolicies::CMP0029,
|
|
||||||
"The subdir_depends command should not be called; see CMP0029.");
|
"The subdir_depends command should not be called; see CMP0029.");
|
||||||
state->AddDisallowedCommand(
|
state->AddDisallowedCommand(
|
||||||
"utility_source", cm::make_unique<cmUtilitySourceCommand>(),
|
"utility_source", cm::make_unique<cmUtilitySourceCommand>(),
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
class cmExecutionStatus;
|
class cmExecutionStatus;
|
||||||
|
|
||||||
bool cmSubdirDependsCommand::InitialPass(std::vector<std::string> const&,
|
bool cmSubdirDependsCommand(std::vector<std::string> const&,
|
||||||
cmExecutionStatus&)
|
cmExecutionStatus&)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
@@ -8,21 +8,9 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "cm_memory.hxx"
|
|
||||||
|
|
||||||
#include "cmCommand.h"
|
|
||||||
|
|
||||||
class cmExecutionStatus;
|
class cmExecutionStatus;
|
||||||
|
|
||||||
class cmSubdirDependsCommand : public cmCommand
|
bool cmSubdirDependsCommand(std::vector<std::string> const& args,
|
||||||
{
|
cmExecutionStatus& status);
|
||||||
public:
|
|
||||||
std::unique_ptr<cmCommand> Clone() override
|
|
||||||
{
|
|
||||||
return cm::make_unique<cmSubdirDependsCommand>();
|
|
||||||
}
|
|
||||||
bool InitialPass(std::vector<std::string> const& args,
|
|
||||||
cmExecutionStatus& status) override;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user