summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorJohn Biddiscombe <jbiddiscombe@skippingmouse.co.uk>2001-09-11 23:58:22 (GMT)
committerJohn Biddiscombe <jbiddiscombe@skippingmouse.co.uk>2001-09-11 23:58:22 (GMT)
commitea40b86683c58325b8086650f2c7aac0a21ac02d (patch)
tree7fdadc9355591308992b9a2f6307ee7c449fd7b7 /Source/cmSystemTools.h
parentfaafcdddbf83e3efc96eb04fd80cce4c8514a5fa (diff)
downloadCMake-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.h4
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>());