diff options
author | Jiang Yue <jiangyue12392@gmail.com> | 2019-07-12 03:33:36 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2019-07-25 16:30:23 (GMT) |
commit | f08dcbffecd45889d8aeabdfa504ee76ef54e351 (patch) | |
tree | 4a01b8b65c4b5383392cbeb4893d80bf421d3a66 /Source/cmInstallTargetGenerator.cxx | |
parent | 579e27ec97101d36d0f42d47bd7aa9c753b15be0 (diff) | |
download | CMake-f08dcbffecd45889d8aeabdfa504ee76ef54e351.zip CMake-f08dcbffecd45889d8aeabdfa504ee76ef54e351.tar.gz CMake-f08dcbffecd45889d8aeabdfa504ee76ef54e351.tar.bz2 |
Property: Add INSTALL_REMOVE_ENVIROMENT_RPATH property
Diffstat (limited to 'Source/cmInstallTargetGenerator.cxx')
-rw-r--r-- | Source/cmInstallTargetGenerator.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx index d891ad8..a61239e 100644 --- a/Source/cmInstallTargetGenerator.cxx +++ b/Source/cmInstallTargetGenerator.cxx @@ -767,12 +767,18 @@ void cmInstallTargetGenerator::AddChrpathPatchRule( this->IssueCMP0095Warning(newRpath); CM_FALLTHROUGH; case cmPolicies::OLD: - os << indent << " NEW_RPATH \"" << newRpath << "\")\n"; + os << indent << " NEW_RPATH \"" << newRpath << "\""; break; default: - os << indent << " NEW_RPATH " << escapedNewRpath << ")\n"; + os << indent << " NEW_RPATH " << escapedNewRpath; break; } + + if (this->Target->GetPropertyAsBool("INSTALL_REMOVE_ENVIRONMENT_RPATH")) { + os << "\n" << indent << " INSTALL_REMOVE_ENVIRONMENT_RPATH)\n"; + } else { + os << indent << ")\n"; + } } } |