cmRemoveDefinitionsCommand.cxx 625 B

1234567891011121314151617181920212223
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #include "cmRemoveDefinitionsCommand.h"
  4. #include "cmMakefile.h"
  5. class cmExecutionStatus;
  6. // cmRemoveDefinitionsCommand
  7. bool cmRemoveDefinitionsCommand::InitialPass(
  8. std::vector<std::string> const& args, cmExecutionStatus&)
  9. {
  10. // it is OK to have no arguments
  11. if (args.empty()) {
  12. return true;
  13. }
  14. for (std::vector<std::string>::const_iterator i = args.begin();
  15. i != args.end(); ++i) {
  16. this->Makefile->RemoveDefineFlag(i->c_str());
  17. }
  18. return true;
  19. }