cmAddCompileDefinitionsCommand.cxx 520 B

12345678910111213141516
  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 "cmAddCompileDefinitionsCommand.h"
  4. #include "cmExecutionStatus.h"
  5. #include "cmMakefile.h"
  6. bool cmAddCompileDefinitionsCommand(std::vector<std::string> const& args,
  7. cmExecutionStatus& status)
  8. {
  9. cmMakefile& mf = status.GetMakefile();
  10. for (std::string const& i : args) {
  11. mf.AddCompileDefinition(i);
  12. }
  13. return true;
  14. }