summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-22 14:37:50 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-05-22 14:37:50 (GMT)
commit3ea9bde8450a28b58730230e9e73e4b8d439f701 (patch)
tree07ba1cb727ab06c8767fe04020a523ae503ed389 /Source/cmTarget.cxx
parent5ce40619db2d89f7cfbc2cd47968346fb22fa795 (diff)
parentb6e2e0d194c41cfff7dc8677dd411d5ea061602b (diff)
downloadCMake-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.cxx7
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())