cmLinkDirectoriesCommand.cxx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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 "cmLinkDirectoriesCommand.h"
  14. // cmLinkDirectoriesCommand
  15. bool cmLinkDirectoriesCommand::InitialPass(std::vector<std::string> const& argsIn)
  16. {
  17. if(argsIn.size() < 1 )
  18. {
  19. return true;
  20. }
  21. std::vector<std::string> args;
  22. cmSystemTools::ExpandListArguments(argsIn, args);
  23. for(std::vector<std::string>::const_iterator i = args.begin();
  24. i != args.end(); ++i)
  25. {
  26. m_Makefile->AddLinkDirectory((*i).c_str());
  27. }
  28. return true;
  29. }