diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-10-27 14:16:17 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-11-20 23:11:54 (GMT) |
commit | d8a59ea4b370eaf4a5b6162631af9e272fdb24b4 (patch) | |
tree | 6b3d14c622b89eaf615b9522752ca12881d7ea1c /Source/cmGeneratorExpressionEvaluator.cxx | |
parent | 8faf4e93801a025d4cb17d2ef12437e5554798b1 (diff) | |
download | CMake-d8a59ea4b370eaf4a5b6162631af9e272fdb24b4.zip CMake-d8a59ea4b370eaf4a5b6162631af9e272fdb24b4.tar.gz CMake-d8a59ea4b370eaf4a5b6162631af9e272fdb24b4.tar.bz2 |
Port cmGeneratorExpression to cmTarget from cmGeneratorTarget.
Following from the discussion here:
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/3615/focus=5170
(Re: Generator expressisons in target properties, 26 Oct 12:10)
we can't split cmTarget API for linking into cmGeneratorTarget. In
the future we will probably also need to move the include and compile
definitions API back to cmTarget so that it can be used by export().
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r-- | Source/cmGeneratorExpressionEvaluator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx index 2e123a4..c609000 100644 --- a/Source/cmGeneratorExpressionEvaluator.cxx +++ b/Source/cmGeneratorExpressionEvaluator.cxx @@ -287,7 +287,7 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode cmsys::RegularExpression propertyNameValidator; propertyNameValidator.compile("^[A-Za-z0-9_]+$"); - cmGeneratorTarget* target = context->Target; + cmTarget* target = context->Target; std::string propertyName = *parameters.begin(); if (parameters.size() == 2) { @@ -320,7 +320,7 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode "Target name not supported."); return std::string(); } - target = context->Makefile->FindGeneratorTargetToUse( + target = context->Makefile->FindTargetToUse( targetName.c_str()); if (!target) |