summaryrefslogtreecommitdiffstats
path: root/Modules/GNUInstallDirs.cmake
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-06-18 14:59:16 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-18 15:16:18 (GMT)
commit37b24e0bedcb2be97323d119897413addcb692e2 (patch)
tree5f7491c8a3e3e875555d0eadeb7783dc4440fc01 /Modules/GNUInstallDirs.cmake
parentd64d2d12c39f54f953fa946cf01fedf33ee2db70 (diff)
downloadCMake-37b24e0bedcb2be97323d119897413addcb692e2.zip
CMake-37b24e0bedcb2be97323d119897413addcb692e2.tar.gz
CMake-37b24e0bedcb2be97323d119897413addcb692e2.tar.bz2
GNUInstallDirs: don't use lib64 on Alpine Linux
Fixes: #22318
Diffstat (limited to 'Modules/GNUInstallDirs.cmake')
-rw-r--r--Modules/GNUInstallDirs.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/GNUInstallDirs.cmake b/Modules/GNUInstallDirs.cmake
index f7d8c36..d81033c 100644
--- a/Modules/GNUInstallDirs.cmake
+++ b/Modules/GNUInstallDirs.cmake
@@ -239,6 +239,7 @@ if(NOT DEFINED CMAKE_INSTALL_LIBDIR OR (_libdir_set
endif()
if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$"
AND NOT CMAKE_CROSSCOMPILING
+ AND NOT EXISTS "/etc/alpine-release"
AND NOT EXISTS "/etc/arch-release")
if (EXISTS "/etc/debian_version") # is this a debian system ?
if(CMAKE_LIBRARY_ARCHITECTURE)