summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-16 18:59:45 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2010-12-16 18:59:45 (GMT)
commitceae8b10629c567f9a2097caa835a78e04d87d9e (patch)
tree2d72448f4251a8e76a5fc4b1d677bb43c59a7565 /Source/CPack/cmCPackGenerator.cxx
parent83b836f61e691f48a99124c6b16581ddc316920c (diff)
parent6d94ea3692c5dd3aafaf8183e31f6060ca2a4669 (diff)
downloadCMake-ceae8b10629c567f9a2097caa835a78e04d87d9e.zip
CMake-ceae8b10629c567f9a2097caa835a78e04d87d9e.tar.gz
CMake-ceae8b10629c567f9a2097caa835a78e04d87d9e.tar.bz2
Merge topic 'CPack-MoreComponentControls'
6d94ea3 CPack use IsOn when it's better than IsSet
Diffstat (limited to 'Source/CPack/cmCPackGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackGenerator.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx
index 71a2a0f..feda52c 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -1070,7 +1070,13 @@ bool cmCPackGenerator::IsSet(const char* name) const
}
//----------------------------------------------------------------------
-const char* cmCPackGenerator::GetOption(const char* op)
+bool cmCPackGenerator::IsOn(const char* name) const
+{
+ return cmSystemTools::IsOn(GetOption(name));
+}
+
+//----------------------------------------------------------------------
+const char* cmCPackGenerator::GetOption(const char* op) const
{
const char* ret = this->MakefileMap->GetDefinition(op);
if(!ret)