You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Insight Consortium. All rights reserved.
  8. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #include "cmIncludeDirectoryCommand.h"
  14. #include "cmCacheManager.h"
  15. // cmIncludeDirectoryCommand
  16. bool cmIncludeDirectoryCommand::InitialPass(std::vector<std::string> const& argsIn)
  17. {
  18. if(argsIn.size() < 1 )
  19. {
  20. return true;
  21. }
  22. std::vector<std::string> args;
  23. cmSystemTools::ExpandListArguments(argsIn, args);
  24. std::vector<std::string>::const_iterator i = args.begin();
  25. bool before = false;
  26. if ((*i) == "BEFORE")
  27. {
  28. before = true;
  29. ++i;
  30. }
  31. for(; i != args.end(); ++i)
  32. {
  33. m_Makefile->AddIncludeDirectory((*i).c_str(), before);
  34. }
  35. return true;
  36. }