diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-16 18:09:43 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-17 15:30:37 (GMT) |
commit | b857f0d84b539056bc6a810161eb22e9b9baca43 (patch) | |
tree | 59240cbfca43ef414c6c3fd1386d8cb7044b39b7 /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | ed09f3b292bee34e8b30204c93ef5596a3124d00 (diff) | |
download | CMake-b857f0d84b539056bc6a810161eb22e9b9baca43.zip CMake-b857f0d84b539056bc6a810161eb22e9b9baca43.tar.gz CMake-b857f0d84b539056bc6a810161eb22e9b9baca43.tar.bz2 |
Use GetName from cmGeneratorTarget.
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index a8f182b..e2061e5 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -77,7 +77,7 @@ void cmNinjaNormalTargetGenerator::Generate() if (this->TargetLinkLanguage.empty()) { cmSystemTools::Error("CMake can not determine linker language for " "target: ", - this->GetTarget()->GetName().c_str()); + this->GetGeneratorTarget()->GetName().c_str()); return; } @@ -158,7 +158,8 @@ cmNinjaNormalTargetGenerator + "_" + cmState::GetTargetTypeName(this->GetGeneratorTarget()->GetType()) + "_LINKER__" - + cmGlobalNinjaGenerator::EncodeRuleName(this->GetTarget()->GetName()) + + cmGlobalNinjaGenerator::EncodeRuleName( + this->GetGeneratorTarget()->GetName()) ; } |