cmAddCompileOptionsCommand.cxx 931 B

12345678910111213141516171819202122232425262728
  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
  12. ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)
  13. {
  14. if(args.size() < 1 )
  15. {
  16. return true;
  17. }
  18. for(std::vector<std::string>::const_iterator i = args.begin();
  19. i != args.end(); ++i)
  20. {
  21. this->Makefile->AddCompileOption(i->c_str());
  22. }
  23. return true;
  24. }