cmAddCompileOptionsCommand.cxx 492 B

1234567891011121314151617181920
  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::string const& i : args) {
  13. this->Makefile->AddCompileOption(i);
  14. }
  15. return true;
  16. }