summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
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/cmMakefileTargetGenerator.cxx
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/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 73d24a9..a08d731 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -2105,7 +2105,7 @@ const char* cmMakefileTargetGenerator::GetFeature(const std::string& feature)
//----------------------------------------------------------------------------
bool cmMakefileTargetGenerator::GetFeatureAsBool(const std::string& feature)
{
- return cmSystemTools::IsOn(this->GetFeature(feature));
+ return this->Target->GetFeatureAsBool(feature, this->ConfigName);
}
//----------------------------------------------------------------------------