summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-01-29 19:52:13 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-01-29 19:52:13 (GMT)
commit3e7bba3fb2d431b512181e99c6333e9dfdc8a9fd (patch)
tree255649e6fb377ba37579f90d82a6532382befef2 /Source/cmGeneratorTarget.cxx
parentc42deac744e1f5637ab592d696b3e8709da2a10c (diff)
parent429e369974015640d7a0878d986e3e418b42b7a4 (diff)
downloadCMake-3e7bba3fb2d431b512181e99c6333e9dfdc8a9fd.zip
CMake-3e7bba3fb2d431b512181e99c6333e9dfdc8a9fd.tar.gz
CMake-3e7bba3fb2d431b512181e99c6333e9dfdc8a9fd.tar.bz2
Merge topic 'fix-automoc-compile-defs'
429e369 Process COMPILE_DEFINITIONS as generator expressions in QtAutomoc. 0e10782 Move GetCompileDefinitions to cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx29
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);
-}