summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-08-29 01:47:07 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-31 18:58:03 (GMT)
commit1fa0f2bd03621121e0a5d4c6cf0b4bcf74ad2ceb (patch)
tree9710dc5bcb061c36ab6f3b7f136cda84386b450d /Source/cmSystemTools.h
parentca7507cebc74fe4af3660cf85c72070c3f95a9ba (diff)
downloadCMake-1fa0f2bd03621121e0a5d4c6cf0b4bcf74ad2ceb.zip
CMake-1fa0f2bd03621121e0a5d4c6cf0b4bcf74ad2ceb.tar.gz
CMake-1fa0f2bd03621121e0a5d4c6cf0b4bcf74ad2ceb.tar.bz2
cmSystemTools: Add IsOn(),IsOff() overloads accepting std::string
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index c0a1b6b..5c383ee 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -129,6 +129,7 @@ public:
* as ifdef.
*/
static bool IsOn(const char* val);
+ static bool IsOn(const std::string& val);
/**
* does a string indicate a false or off value ? Note that this is
@@ -138,6 +139,7 @@ public:
* NOTFOUND, *-NOTFOUND or IGNORE will cause IsOff to return true.
*/
static bool IsOff(const char* val);
+ static bool IsOff(const std::string& val);
///! Return true if value is NOTFOUND or ends in -NOTFOUND.
static bool IsNOTFOUND(const char* value);