summaryrefslogtreecommitdiff
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-04 19:19:46 +0200
committerStephen Kelly <steveire@gmail.com>2015-08-05 18:20:47 +0200
commite27d737e27fbfc8cfde020ec02d6b2c74afb6885 (patch)
tree895ab57e59489993a842ff5b8f081988f5dfc9d1 /Source/cmComputeLinkInformation.cxx
parent8d2de00244f8338664c16bd8d8ebb03c6f0cb83f (diff)
downloadcmake-e27d737e27fbfc8cfde020ec02d6b2c74afb6885.tar.gz
cmGeneratorTarget: Move IsChrPathUsed from cmTarget.
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 72db6f867f..b7555a660d 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -321,7 +321,11 @@ cmComputeLinkInformation
this->RuntimeAlways =
(this->Makefile->
GetSafeDefinition("CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH"));
- this->RuntimeUseChrpath = this->Target->IsChrpathUsed(config);
+
+ cmGeneratorTarget *gtgt = this->Target->GetMakefile()
+ ->GetGlobalGenerator()
+ ->GetGeneratorTarget(this->Target);
+ this->RuntimeUseChrpath = gtgt->IsChrpathUsed(config);
// Get options needed to help find dependent libraries.
std::string rlVar = "CMAKE_";