diff options
author | Brad King <brad.king@kitware.com> | 2016-11-30 13:37:30 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-11-30 13:37:30 (GMT) |
commit | 2036639b55fe5a1baaa36145368e7229834d6387 (patch) | |
tree | bb1f4f0b0a4100177ceecd52d174ea53cfd9b2f5 /Source/CPack/cmCPackGenerator.cxx | |
parent | 8cdf566bc00da2b1a839a74bdbc99cfbc305bfee (diff) | |
parent | 88ecfd8ba122133777bb71b027df3684689d4e3a (diff) | |
download | CMake-2036639b55fe5a1baaa36145368e7229834d6387.zip CMake-2036639b55fe5a1baaa36145368e7229834d6387.tar.gz CMake-2036639b55fe5a1baaa36145368e7229834d6387.tar.bz2 |
Merge topic 'cpack-ifw-options'
88ecfd8b CPackIFW: Add some options
Diffstat (limited to 'Source/CPack/cmCPackGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackGenerator.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index 3878a32..21eda79 100644 --- a/Source/CPack/cmCPackGenerator.cxx +++ b/Source/CPack/cmCPackGenerator.cxx @@ -1074,6 +1074,24 @@ bool cmCPackGenerator::IsOn(const std::string& name) const return cmSystemTools::IsOn(GetOption(name)); } +bool cmCPackGenerator::IsSetToOff(const std::string& op) const +{ + const char* ret = this->MakefileMap->GetDefinition(op); + if (ret && *ret) { + return cmSystemTools::IsOff(ret); + } + return false; +} + +bool cmCPackGenerator::IsSetToEmpty(const std::string& op) const +{ + const char* ret = this->MakefileMap->GetDefinition(op); + if (ret) { + return !*ret; + } + return false; +} + const char* cmCPackGenerator::GetOption(const std::string& op) const { const char* ret = this->MakefileMap->GetDefinition(op); |