summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-01-31 18:50:42 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-01-31 18:50:42 (GMT)
commitf58d7df66a4cbfd171ae27eb0beaf12cf5355c08 (patch)
treeef63fcade1fda3aab970cc0566a66fa085edc1a2 /Source/cmSystemTools.h
parent5e661c66393328896f7a24f50b9f84fe8dd5f029 (diff)
downloadCMake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.zip
CMake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.tar.gz
CMake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.tar.bz2
ENH: add checking for NOTFOUND
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 9c3d2ae..c977ced 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -213,10 +213,13 @@ public:
* not the same as !IsOn(...) because there are a number of
* ambiguous values such as "/usr/local/bin" a path will result in
* IsON and IsOff both returning false. Note that the special path
- * NOTFOUND or IGNORE will cause IsOff to return true.
+ * NOTFOUND, *-NOTFOUND or IGNORE will cause IsOff to return true.
*/
static bool IsOff(const char* val);
+ ///! Return true if value is NOTFOUND or ends in -NOTFOUND.
+ static bool IsNOTFOUND(const char* value);
+
///! 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>());