diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-12-26 02:40:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-01-29 19:11:49 (GMT) |
commit | 0e10782ba795050e1ea82530d79c323f60478df4 (patch) | |
tree | b6d8b92725537591b13f0f7a439008f5516178cf /Source/cmGeneratorTarget.cxx | |
parent | 21fc6c46df7f2271d7baace04f239f031785b917 (diff) | |
download | CMake-0e10782ba795050e1ea82530d79c323f60478df4.zip CMake-0e10782ba795050e1ea82530d79c323f60478df4.tar.gz CMake-0e10782ba795050e1ea82530d79c323f60478df4.tar.bz2 |
Move GetCompileDefinitions to cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 62ee26a..335ba0f 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -254,32 +254,3 @@ std::vector<std::string> cmGeneratorTarget::GetIncludeDirectories( { return this->Target->GetIncludeDirectories(config); } - -//---------------------------------------------------------------------------- -std::string cmGeneratorTarget::GetCompileDefinitions(const char *config) -{ - std::string defPropName = "COMPILE_DEFINITIONS"; - if (config) - { - defPropName += "_" + cmSystemTools::UpperCase(config); - } - - const char *prop = this->Target->GetProperty(defPropName.c_str()); - - if (!prop) - { - return ""; - } - - cmListFileBacktrace lfbt; - cmGeneratorExpression ge(lfbt); - - cmGeneratorExpressionDAGChecker dagChecker(lfbt, - this->GetName(), - defPropName, 0, 0); - return ge.Parse(prop)->Evaluate(this->Makefile, - config, - false, - this->Target, - &dagChecker); -} |