diff options
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r-- | Source/cmComputeLinkInformation.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx index 554d8de..a3f8bab 100644 --- a/Source/cmComputeLinkInformation.cxx +++ b/Source/cmComputeLinkInformation.cxx @@ -1463,6 +1463,18 @@ std::string cmComputeLinkInformation::GetRPathString(bool for_install) // Add this path. rpath += *ri; } + + // If the rpath will be replaced at install time make sure it is + // long enough now. + if(!for_install && this->RuntimeUseChrpath) + { + std::string::size_type minLength = this->GetChrpathString().length(); + while(rpath.length() < minLength) + { + rpath += this->GetRuntimeSep(); + } + } + return rpath; } |