diff options
author | Brad King <brad.king@kitware.com> | 2014-05-21 13:34:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-05-21 13:38:22 (GMT) |
commit | c2eeb08b06d422c7b72aa9e6431e6e7584ce8c74 (patch) | |
tree | 82e20e3d0c60ee5573227aa54a992fc5db55394b /Source/cmNinjaTargetGenerator.cxx | |
parent | f7654a07d5156c5f2899884949108dbe815563ce (diff) | |
download | CMake-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/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 54e398c..c3b4c75 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -105,7 +105,7 @@ const char* cmNinjaTargetGenerator::GetFeature(const std::string& feature) // TODO: Picked up from cmMakefileTargetGenerator. Refactor it. bool cmNinjaTargetGenerator::GetFeatureAsBool(const std::string& feature) { - return cmSystemTools::IsOn(this->GetFeature(feature)); + return this->Target->GetFeatureAsBool(feature, this->GetConfigName()); } // TODO: Picked up from cmMakefileTargetGenerator. Refactor it. |