cmAddCompileOptionsCommand.cxx 560 B

123456789101112131415161718192021
  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 "cmAddCompileOptionsCommand.h"
  4. #include "cmMakefile.h"
  5. class cmExecutionStatus;
  6. bool cmAddCompileOptionsCommand::InitialPass(
  7. std::vector<std::string> const& args, cmExecutionStatus&)
  8. {
  9. if (args.empty()) {
  10. return true;
  11. }
  12. for (std::vector<std::string>::const_iterator i = args.begin();
  13. i != args.end(); ++i) {
  14. this->Makefile->AddCompileOption(i->c_str());
  15. }
  16. return true;
  17. }