summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPathCommand.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-02 18:30:22 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-02 18:30:22 (GMT)
commita5825cd11af3a6def49c9528e77f4394babff7de (patch)
treecf8f0ed84fc150bd0befa0b00937deb0cb1cec0a /Source/cmFindPathCommand.h
parent2f78d874a75e8032b90997df3449040c941b1b5b (diff)
downloadCMake-a5825cd11af3a6def49c9528e77f4394babff7de.zip
CMake-a5825cd11af3a6def49c9528e77f4394babff7de.tar.gz
CMake-a5825cd11af3a6def49c9528e77f4394babff7de.tar.bz2
ENH: check in new find stuff
Diffstat (limited to 'Source/cmFindPathCommand.h')
-rw-r--r--Source/cmFindPathCommand.h35
1 files changed, 9 insertions, 26 deletions
diff --git a/Source/cmFindPathCommand.h b/Source/cmFindPathCommand.h
index 3c44221..5e9c83b 100644
--- a/Source/cmFindPathCommand.h
+++ b/Source/cmFindPathCommand.h
@@ -17,7 +17,7 @@
#ifndef cmFindPathCommand_h
#define cmFindPathCommand_h
-#include "cmCommand.h"
+#include "cmFindBase.h"
/** \class cmFindPathCommand
@@ -27,9 +27,10 @@
* that specifies a library. The command searches for a given
* file in a list of directories.
*/
-class cmFindPathCommand : public cmCommand
+class cmFindPathCommand : public cmFindBase
{
public:
+ cmFindPathCommand();
/**
* This is a virtual constructor for the command.
*/
@@ -61,31 +62,13 @@ public:
{
return "Find the directory containing a file.";
}
-
- /**
- * More documentation.
- */
- virtual const char* GetFullDocumentation()
- {
- return
- " FIND_PATH(<VAR> fileName path1 [path2 ...]\n"
- " [DOC \"docstring\"])\n"
- "Find the directory containing a file named by fileName. "
- "A cache entry named by "
- "<VAR> is created to store the result. If the file is not "
- "found, the result will be <VAR>-NOTFOUND. If DOC is specified "
- "then the next argument is treated as a documentation string for "
- "the cache entry <VAR>. "
- "The search proceeds first in paths listed in the CMAKE_INCLUDE_PATH "
- "CMake variable (which is generally set by the user on the command line), "
- "then in paths listed in the CMAKE_INCLUDE_PATH environment variable, "
- "then in paths given to the command, and finally in paths listed in the "
- "PATH environment variable.";
- }
- cmStdString FindHeaderInFrameworks( std::vector<std::string> path,
- const char* var, const char* file);
- cmTypeMacro(cmFindPathCommand, cmCommand);
+ std::string FindHeaderInFramework( std::string& file,
+ std::string& dir);
+ virtual const char* GetFullDocumentation();
+ cmTypeMacro(cmFindPathCommand, cmFindBase);
+ bool IncludeFileInPath;
+ bool ExtraDocAdded;
};