diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-09 18:53:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-09 18:53:32 (GMT) |
commit | f07ee5b8177e9e08f290e3acdff6c31d6b694bf6 (patch) | |
tree | 7d08c74e73010dfe3bd735b592fd64f09de5ab9c /Source/cmSystemTools.h | |
parent | 1dc7ae38ead50498b9e813d7c6e96f9d850b45ea (diff) | |
download | CMake-f07ee5b8177e9e08f290e3acdff6c31d6b694bf6.zip CMake-f07ee5b8177e9e08f290e3acdff6c31d6b694bf6.tar.gz CMake-f07ee5b8177e9e08f290e3acdff6c31d6b694bf6.tar.bz2 |
ENH: change find library and find program to look for more than one name
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 3830ad3..c9838c0 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -164,11 +164,15 @@ public: * IsON and IsOff both returning false. Note that the special path * NOTFOUND will cause IsOff to return true. */ - static bool IsOff(const char* val); + static bool IsOff(const char* val); + ///! Find an executable in the system PATH, with optional extra paths. static std::string FindProgram(const char* name, - const std::vector<std::string>& = std::vector<std::string>()); - + const std::vector<std::string>& path= std::vector<std::string>()); + ///! Find a library in the system PATH, with optional extra paths. + static std::string FindLibrary(const char* name, + const std::vector<std::string>& path); + ///! return true if the file is a directory. static bool FileIsDirectory(const char* name); static std::string GetCurrentWorkingDirectory(); static std::string GetProgramPath(const char*); |