diff options
author | John Biddiscombe <jbiddiscombe@skippingmouse.co.uk> | 2001-09-11 23:58:22 (GMT) |
---|---|---|
committer | John Biddiscombe <jbiddiscombe@skippingmouse.co.uk> | 2001-09-11 23:58:22 (GMT) |
commit | ea40b86683c58325b8086650f2c7aac0a21ac02d (patch) | |
tree | 7fdadc9355591308992b9a2f6307ee7c449fd7b7 /Source/cmSystemTools.h | |
parent | faafcdddbf83e3efc96eb04fd80cce4c8514a5fa (diff) | |
download | CMake-ea40b86683c58325b8086650f2c7aac0a21ac02d.zip CMake-ea40b86683c58325b8086650f2c7aac0a21ac02d.tar.gz CMake-ea40b86683c58325b8086650f2c7aac0a21ac02d.tar.bz2 |
ENH: Add a findfile routine (as opposed to find executable or library) which doesn't
add any extensions - Borland make needs full paths to certain dependencies
otherwise linking doesn't work properly (dependencies aren't checked)
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index f6b4356..c7c44af 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -205,6 +205,10 @@ public: */ static bool IsOff(const char* val); + ///! Find a file in the system PATH, with optional extra paths. + static std::string FindFile(const char* name, + const std::vector<std::string>& path= std::vector<std::string>()); + ///! Find an executable in the system PATH, with optional extra paths. static std::string FindProgram(const char* name, const std::vector<std::string>& path= std::vector<std::string>()); |