cmAddDefinitionsCommand.cxx 998 B

12345678910111213141516171819202122232425262728293031
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  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 "cmAddDefinitionsCommand.h"
  11. // cmAddDefinitionsCommand
  12. bool cmAddDefinitionsCommand
  13. ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)
  14. {
  15. // it is OK to have no arguments
  16. if(args.size() < 1 )
  17. {
  18. return true;
  19. }
  20. for(std::vector<std::string>::const_iterator i = args.begin();
  21. i != args.end(); ++i)
  22. {
  23. this->Makefile->AddDefineFlag(i->c_str());
  24. }
  25. return true;
  26. }