diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-09-12 08:24:55 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-09-12 16:16:17 (GMT) |
commit | 706400d417e6435a442af2626a8430016e24aa9d (patch) | |
tree | 82de4249f36b7c59c3b89181ca385a8b0d908f82 /Source/cmRemoveDefinitionsCommand.cxx | |
parent | 7f8699026211c6a3055e767125021a91da4b1393 (diff) | |
download | CMake-706400d417e6435a442af2626a8430016e24aa9d.zip CMake-706400d417e6435a442af2626a8430016e24aa9d.tar.gz CMake-706400d417e6435a442af2626a8430016e24aa9d.tar.bz2 |
cmRemoveDefinitionsCommand: Port away from cmCommand
Ref: #19499
Diffstat (limited to 'Source/cmRemoveDefinitionsCommand.cxx')
-rw-r--r-- | Source/cmRemoveDefinitionsCommand.cxx | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/Source/cmRemoveDefinitionsCommand.cxx b/Source/cmRemoveDefinitionsCommand.cxx index 8d3f688..339ff9d 100644 --- a/Source/cmRemoveDefinitionsCommand.cxx +++ b/Source/cmRemoveDefinitionsCommand.cxx @@ -2,21 +2,15 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmRemoveDefinitionsCommand.h" +#include "cmExecutionStatus.h" #include "cmMakefile.h" -class cmExecutionStatus; - -// cmRemoveDefinitionsCommand -bool cmRemoveDefinitionsCommand::InitialPass( - std::vector<std::string> const& args, cmExecutionStatus&) +bool cmRemoveDefinitionsCommand(std::vector<std::string> const& args, + cmExecutionStatus& status) { - // it is OK to have no arguments - if (args.empty()) { - return true; - } - + cmMakefile& mf = status.GetMakefile(); for (std::string const& i : args) { - this->Makefile->RemoveDefineFlag(i); + mf.RemoveDefineFlag(i); } return true; } |