CMake/Source/cmFindFileCommand.cxx

31 lines
1.2 KiB
C++
Raw Normal View History

/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
2001-02-27 01:13:30 +03:00
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
2001-02-27 01:13:30 +03:00
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
2001-02-27 01:13:30 +03:00
#include "cmFindFileCommand.h"
2006-03-02 21:30:22 +03:00
#include "cmSystemTools.h"
2001-02-27 01:13:30 +03:00
2006-03-02 21:30:22 +03:00
cmFindFileCommand::cmFindFileCommand()
2001-02-27 01:13:30 +03:00
{
2006-03-02 21:30:22 +03:00
this->IncludeFileInPath = true;
}
void cmFindFileCommand::GenerateDocumentation()
{
this->cmFindPathCommand::GenerateDocumentation();
2006-03-02 21:30:22 +03:00
cmSystemTools::ReplaceString(this->GenericDocumentation,
"find_path", "find_file");
2006-03-02 21:30:22 +03:00
cmSystemTools::ReplaceString(this->GenericDocumentation,
"directory containing the named file",
2006-05-10 23:46:45 +04:00
"full path to named file");
2006-03-02 21:30:22 +03:00
cmSystemTools::ReplaceString(this->GenericDocumentation,
"file in a directory", "full path to a file");
2001-02-27 01:13:30 +03:00
}