summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2010-08-23 14:14:40 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2010-08-23 14:14:40 (GMT)
commit40dc97dc73b67d76442b386b73c57437fa72db34 (patch)
tree791ced92f94cc0ff369aba2352576268d46219bc /Source/cmSystemTools.cxx
parentb718597b8bf50cee6be222915f41294f9fe89f5e (diff)
downloadCMake-40dc97dc73b67d76442b386b73c57437fa72db34.zip
CMake-40dc97dc73b67d76442b386b73c57437fa72db34.tar.gz
CMake-40dc97dc73b67d76442b386b73c57437fa72db34.tar.bz2
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 271a662..8378922 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)