cmAddCompileOptionsCommand.cxx 919 B

1234567891011121314151617181920212223242526
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2013 Stephen Kelly <[email protected]>
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmAddCompileOptionsCommand.h"
  11. bool cmAddCompileOptionsCommand::InitialPass(
  12. std::vector<std::string> const& args, cmExecutionStatus&)
  13. {
  14. if (args.empty()) {
  15. return true;
  16. }
  17. for (std::vector<std::string>::const_iterator i = args.begin();
  18. i != args.end(); ++i) {
  19. this->Makefile->AddCompileOption(i->c_str());
  20. }
  21. return true;
  22. }