diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-10 15:51:21 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-17 17:30:38 +0200 |
commit | cfb2f7508af637c9c35758fbd5dac6c8cb679bdb (patch) | |
tree | 0673c4a5fdbe20c4d19a1675dd5274e4395b1e0e /Source/cmMakefileExecutableTargetGenerator.cxx | |
parent | b857f0d84b539056bc6a810161eb22e9b9baca43 (diff) | |
download | cmake-cfb2f7508af637c9c35758fbd5dac6c8cb679bdb.tar.gz |
Use cmGeneratorTarget for property access.
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileExecutableTargetGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx index 433af7ea1b..43bc4e1364 100644 --- a/Source/cmMakefileExecutableTargetGenerator.cxx +++ b/Source/cmMakefileExecutableTargetGenerator.cxx @@ -197,7 +197,7 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) this->ConfigName); - if(this->Target->GetPropertyAsBool("WIN32_EXECUTABLE")) + if(this->GeneratorTarget->GetPropertyAsBool("WIN32_EXECUTABLE")) { this->LocalGenerator->AppendFlags (linkFlags, this->Makefile->GetDefinition("CMAKE_CREATE_WIN32_EXE")); @@ -226,11 +226,11 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) // Add target-specific linker flags. this->LocalGenerator->AppendFlags - (linkFlags, this->Target->GetProperty("LINK_FLAGS")); + (linkFlags, this->GeneratorTarget->GetProperty("LINK_FLAGS")); std::string linkFlagsConfig = "LINK_FLAGS_"; linkFlagsConfig += cmSystemTools::UpperCase(this->ConfigName); this->LocalGenerator->AppendFlags - (linkFlags, this->Target->GetProperty(linkFlagsConfig)); + (linkFlags, this->GeneratorTarget->GetProperty(linkFlagsConfig)); this->AddModuleDefinitionFlag(linkFlags); |