cmLinkDirectoriesCommand.cxx 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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 "cmLinkDirectoriesCommand.h"
  11. // cmLinkDirectoriesCommand
  12. bool cmLinkDirectoriesCommand
  13. ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)
  14. {
  15. if(args.size() < 1 )
  16. {
  17. return true;
  18. }
  19. for(std::vector<std::string>::const_iterator i = args.begin();
  20. i != args.end(); ++i)
  21. {
  22. std::string unixPath = *i;
  23. cmSystemTools::ConvertToUnixSlashes(unixPath);
  24. this->Makefile->AddLinkDirectory(unixPath.c_str());
  25. }
  26. return true;
  27. }