summaryrefslogtreecommitdiff
path: root/Modules/Platform/UnixPaths.cmake
diff options
context:
space:
mode:
authorSteven Newbury <steve@snewbury.org.uk>2017-02-27 21:06:51 +0000
committerBrad King <brad.king@kitware.com>2017-03-07 15:22:55 -0500
commit462cf254270fbd56bffc73b00dc28882fdb0bdd6 (patch)
treeff0ebb25613ba68d21b9b50f60f1f53f2ea05d79 /Modules/Platform/UnixPaths.cmake
parent06ef23c3e0abf79f451cf69fbd3ac646b7e17c27 (diff)
downloadcmake-462cf254270fbd56bffc73b00dc28882fdb0bdd6.tar.gz
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 'Modules/Platform/UnixPaths.cmake')
-rw-r--r--Modules/Platform/UnixPaths.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake
index b216d03db6..c1d2c03bff 100644
--- a/Modules/Platform/UnixPaths.cmake
+++ b/Modules/Platform/UnixPaths.cmake
@@ -86,3 +86,4 @@ list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
# Enable use of lib32 and lib64 search path variants by default.
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB32_PATHS TRUE)
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS TRUE)
+set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIBX32_PATHS TRUE)