diff options
author | Brad King <brad.king@kitware.com> | 2009-04-21 15:36:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-04-21 15:36:59 (GMT) |
commit | 714d2fc04ba0ba7b455ab30602aef4ebc69ecf1b (patch) | |
tree | 1921cb354af2b2e40060adc8cbeab50e673d1a3e /Source/cmSystemTools.h | |
parent | 7bb8678fc649457deaac9527b785dbd43ee70928 (diff) | |
download | CMake-714d2fc04ba0ba7b455ab30602aef4ebc69ecf1b.zip CMake-714d2fc04ba0ba7b455ab30602aef4ebc69ecf1b.tar.gz CMake-714d2fc04ba0ba7b455ab30602aef4ebc69ecf1b.tar.bz2 |
ENH: Remove obscure method from KWSys SystemTools
This removes SystemTools::FileExistsInParentDirectories from KWSys since
it is a special-purpose method that is not generally useful.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 7c6e3e9..00b4873 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -144,6 +144,14 @@ public: const char *name, const std::vector<std::string>& sourceExts); + /** + * Check if the given file exists in one of the parent directory of the + * given file or directory and if it does, return the name of the file. + * Toplevel specifies the top-most directory to where it will look. + */ + static std::string FileExistsInParentDirectories(const char* fname, + const char* directory, const char* toplevel); + static void Glob(const char *directory, const char *regexp, std::vector<std::string>& files); static void GlobDirs(const char *fullPath, std::vector<std::string>& files); |