summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-04 17:19:46 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-05 16:20:47 (GMT)
commite27d737e27fbfc8cfde020ec02d6b2c74afb6885 (patch)
tree895ab57e59489993a842ff5b8f081988f5dfc9d1 /Source/cmComputeLinkInformation.cxx
parent8d2de00244f8338664c16bd8d8ebb03c6f0cb83f (diff)
downloadCMake-e27d737e27fbfc8cfde020ec02d6b2c74afb6885.zip
CMake-e27d737e27fbfc8cfde020ec02d6b2c74afb6885.tar.gz
CMake-e27d737e27fbfc8cfde020ec02d6b2c74afb6885.tar.bz2
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 72db6f8..b7555a6 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_";