summaryrefslogtreecommitdiff
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2010-08-23 16:14:40 +0200
committerEric NOULARD <eric.noulard@gmail.com>2010-08-23 16:14:40 +0200
commit40dc97dc73b67d76442b386b73c57437fa72db34 (patch)
tree791ced92f94cc0ff369aba2352576268d46219bc /Source/cmSystemTools.cxx
parentb718597b8bf50cee6be222915f41294f9fe89f5e (diff)
downloadcmake-40dc97dc73b67d76442b386b73c57437fa72db34.tar.gz
CPack Backward-compatibly enforce DESTDIR for DEB and RPM
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx17
1 files changed, 16 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 271a66263f..8378922142 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -283,7 +283,22 @@ void cmSystemTools::ReportLastSystemError(const char* msg)
cmSystemTools::Error(m.c_str());
}
-
+bool cmSystemTools::IsInternallyOn(const char* val)
+{
+ if (!val)
+ {
+ return false;
+ }
+ std::basic_string<char> v = val;
+
+ for(std::basic_string<char>::iterator c = v.begin();
+ c != v.end(); c++)
+ {
+ *c = static_cast<char>(toupper(*c));
+ }
+ return (v == "I_ON" || v == "i_on");
+}
+
bool cmSystemTools::IsOn(const char* val)
{
if (!val)