summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-20 15:16:45 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-10-20 15:16:45 (GMT)
commit9afbb733ec2a55424e6c25c6afa7fdd14219d6b1 (patch)
treecf1f8a0124d239bb85b0c2f07afd19a6759a4520 /Source/cmNinjaTargetGenerator.cxx
parent5ec8064b76aca89b6e0274e53c272f298655b992 (diff)
parentd8f8940bc68f09e382320d1ffe36947ba880ae65 (diff)
downloadCMake-9afbb733ec2a55424e6c25c6afa7fdd14219d6b1.zip
CMake-9afbb733ec2a55424e6c25c6afa7fdd14219d6b1.tar.gz
CMake-9afbb733ec2a55424e6c25c6afa7fdd14219d6b1.tar.bz2
Merge topic 'use-generator-target'
d8f8940b cmGeneratorTarget: Move IsCFBundleOnApple from cmTarget. 7550879f cmGeneratorTarget: Move IsXCTestOnApple from cmTarget. 88d10d55 cmGeneratorTarget: Copy IsAppBundleOnApple from cmTarget. b5f5de70 cmGeneratorTarget: Copy IsFrameworkOnApple from cmTarget. 8e20ea6e cmGeneratorTarget: Move IsLinkable from cmTarget. a527abf0 Xcode: Port internal API to cmGeneratorTarget. eb3be7d6 cmGeneratorTarget: Move GetExportName from cmTarget. d231c31b Export: Port internal API to cmGeneratorTarget. e6661282 Export: Port internal utility to cmGeneratorTarget. 2b9cc1e2 Export: Port some API to cmGlobalGenerator. 97062ac2 cmInstallTargetGenerator: Port GetInstallFilename to cmGeneratorTarget. 6a72b3c8 Export: Port interface to cmGeneratorTarget. 1293c156 cmExportTryCompileFileGenerator: Port to cmGeneratorTarget. 381e7afd cmExportSet: Store a cmGeneratorTarget. 65911cae cmGlobalGenerator: Compute export() related classes early. 37ab74a6 cmLocalGenerator: Port PList handling to cmGeneratorTarget. ...
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 0eba0b3..cb1122c 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -92,7 +92,7 @@ std::string cmNinjaTargetGenerator::LanguageCompilerRule(
const std::string& lang) const
{
return lang + "_COMPILER__" +
- cmGlobalNinjaGenerator::EncodeRuleName(this->Target->GetName());
+ cmGlobalNinjaGenerator::EncodeRuleName(this->GeneratorTarget->GetName());
}
std::string
@@ -218,7 +218,8 @@ cmNinjaDeps cmNinjaTargetGenerator::ComputeLinkDeps() const
}
// Add user-specified dependencies.
- if (const char* linkDepends = this->Target->GetProperty("LINK_DEPENDS"))
+ if (const char* linkDepends =
+ this->GeneratorTarget->GetProperty("LINK_DEPENDS"))
{
std::vector<std::string> linkDeps;
cmSystemTools::ExpandListArgument(linkDepends, linkDeps);
@@ -271,7 +272,7 @@ cmNinjaTargetGenerator
std::string cmNinjaTargetGenerator::GetTargetName() const
{
- return this->Target->GetName();
+ return this->GeneratorTarget->GetName();
}
@@ -334,7 +335,7 @@ cmNinjaTargetGenerator
{
cmLocalGenerator::RuleVariables vars;
vars.RuleLauncher = "RULE_LAUNCH_COMPILE";
- vars.CMTarget = this->GetTarget();
+ vars.CMTarget = this->GetGeneratorTarget();
vars.Language = lang.c_str();
vars.Source = "$in";
vars.Object = "$out";
@@ -410,7 +411,7 @@ cmNinjaTargetGenerator
if (!compileCmds.empty() && (lang == "C" || lang == "CXX"))
{
std::string const iwyu_prop = lang + "_INCLUDE_WHAT_YOU_USE";
- const char *iwyu = this->Target->GetProperty(iwyu_prop);
+ const char *iwyu = this->GeneratorTarget->GetProperty(iwyu_prop);
if (iwyu && *iwyu)
{
std::string run_iwyu =
@@ -427,7 +428,7 @@ cmNinjaTargetGenerator
if (!compileCmds.empty() && (lang == "C" || lang == "CXX"))
{
std::string const clauncher_prop = lang + "_COMPILER_LAUNCHER";
- const char *clauncher = this->Target->GetProperty(clauncher_prop);
+ const char *clauncher = this->GeneratorTarget->GetProperty(clauncher_prop);
if (clauncher && *clauncher)
{
std::vector<std::string> launcher_cmd;