summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-21 13:34:32 (GMT)
committerBrad King <brad.king@kitware.com>2014-05-21 13:38:22 (GMT)
commitc2eeb08b06d422c7b72aa9e6431e6e7584ce8c74 (patch)
tree82e20e3d0c60ee5573227aa54a992fc5db55394b /Source/cmTarget.h
parentf7654a07d5156c5f2899884949108dbe815563ce (diff)
downloadCMake-c2eeb08b06d422c7b72aa9e6431e6e7584ce8c74.zip
CMake-c2eeb08b06d422c7b72aa9e6431e6e7584ce8c74.tar.gz
CMake-c2eeb08b06d422c7b72aa9e6431e6e7584ce8c74.tar.bz2
cmTarget: Add GetFeatureAsBool method
Return the GetFeature method result converted to a boolean value.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index bee6b34..93e1b5b 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -237,6 +237,8 @@ public:
const char* GetFeature(const std::string& feature,
const std::string& config) const;
+ bool GetFeatureAsBool(const std::string& feature,
+ const std::string& config) const;
bool IsImported() const {return this->IsImportedTarget;}