cmAddDefinitionsCommand.cxx 584 B

12345678910111213141516171819202122
  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 "cmAddDefinitionsCommand.h"
  4. #include "cmMakefile.h"
  5. class cmExecutionStatus;
  6. // cmAddDefinitionsCommand
  7. bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& args,
  8. cmExecutionStatus&)
  9. {
  10. // it is OK to have no arguments
  11. if (args.empty()) {
  12. return true;
  13. }
  14. for (std::string const& i : args) {
  15. this->Makefile->AddDefineFlag(i);
  16. }
  17. return true;
  18. }