cmFindFileCommand.cxx 1.2 KB

123456789101112131415161718192021222324252627282930
  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 "cmFindFileCommand.h"
  11. #include "cmSystemTools.h"
  12. cmFindFileCommand::cmFindFileCommand()
  13. {
  14. this->IncludeFileInPath = true;
  15. }
  16. void cmFindFileCommand::GenerateDocumentation()
  17. {
  18. this->cmFindPathCommand::GenerateDocumentation();
  19. cmSystemTools::ReplaceString(this->GenericDocumentation,
  20. "find_path", "find_file");
  21. cmSystemTools::ReplaceString(this->GenericDocumentation,
  22. "directory containing the named file",
  23. "full path to named file");
  24. cmSystemTools::ReplaceString(this->GenericDocumentation,
  25. "file in a directory", "full path to a file");
  26. }