cmAddCompileOptionsCommand.cxx 509 B

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