diff options
author | Brad King <brad.king@kitware.com> | 2014-05-22 14:37:50 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-05-22 14:37:50 (GMT) |
commit | 3ea9bde8450a28b58730230e9e73e4b8d439f701 (patch) | |
tree | 07ba1cb727ab06c8767fe04020a523ae503ed389 /Source/cmTarget.cxx | |
parent | 5ce40619db2d89f7cfbc2cd47968346fb22fa795 (diff) | |
parent | b6e2e0d194c41cfff7dc8677dd411d5ea061602b (diff) | |
download | CMake-3ea9bde8450a28b58730230e9e73e4b8d439f701.zip CMake-3ea9bde8450a28b58730230e9e73e4b8d439f701.tar.gz CMake-3ea9bde8450a28b58730230e9e73e4b8d439f701.tar.bz2 |
Merge topic 'ninja-intel-ipo'
b6e2e0d1 Ninja: Fix Intel interprocedural optimization with static libraries
5d12b87b cmGeneratorTarget: Improve GetCreateRuleVariable API
c2eeb08b cmTarget: Add GetFeatureAsBool method
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index a961ddc..15acfdd 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -3182,6 +3182,13 @@ const char* cmTarget::GetFeature(const std::string& feature, } //---------------------------------------------------------------------------- +bool cmTarget::GetFeatureAsBool(const std::string& feature, + const std::string& config) const +{ + return cmSystemTools::IsOn(this->GetFeature(feature, config)); +} + +//---------------------------------------------------------------------------- bool cmTarget::HandleLocationPropertyPolicy(cmMakefile* context) const { if (this->IsImported()) |