summaryrefslogtreecommitdiffstats
path: root/Source/cmExportInstallFileGenerator.cxx
diff options
context:
space:
mode:
authorSteven Newbury <steve@snewbury.org.uk>2017-02-27 21:06:51 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-07 20:22:55 (GMT)
commit462cf254270fbd56bffc73b00dc28882fdb0bdd6 (patch)
treeff0ebb25613ba68d21b9b50f60f1f53f2ea05d79 /Source/cmExportInstallFileGenerator.cxx
parent06ef23c3e0abf79f451cf69fbd3ac646b7e17c27 (diff)
downloadCMake-462cf254270fbd56bffc73b00dc28882fdb0bdd6.zip
CMake-462cf254270fbd56bffc73b00dc28882fdb0bdd6.tar.gz
CMake-462cf254270fbd56bffc73b00dc28882fdb0bdd6.tar.bz2
Add support for x32-abi
Detect x32-abi through CMakeCompilerABI infrastruture and use this information at runtime to determine the correct library paths with `FIND_LIBRARY_USE_LIBX32_PATHS`. Fixes: #15994
Diffstat (limited to 'Source/cmExportInstallFileGenerator.cxx')
-rw-r--r--Source/cmExportInstallFileGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx
index 64ea3c8..3b76a87 100644
--- a/Source/cmExportInstallFileGenerator.cxx
+++ b/Source/cmExportInstallFileGenerator.cxx
@@ -195,8 +195,10 @@ void cmExportInstallFileGenerator::GenerateImportPrefix(std::ostream& os)
<< " \"${CMAKE_CURRENT_LIST_FILE}\" PATH)\n";
if (cmHasLiteralPrefix(absDestS.c_str(), "/lib/") ||
cmHasLiteralPrefix(absDestS.c_str(), "/lib64/") ||
+ cmHasLiteralPrefix(absDestS.c_str(), "/libx32/") ||
cmHasLiteralPrefix(absDestS.c_str(), "/usr/lib/") ||
- cmHasLiteralPrefix(absDestS.c_str(), "/usr/lib64/")) {
+ cmHasLiteralPrefix(absDestS.c_str(), "/usr/lib64/") ||
+ cmHasLiteralPrefix(absDestS.c_str(), "/usr/libx32/")) {
// Handle "/usr move" symlinks created by some Linux distros.
/* clang-format off */
os <<