GNUInstallDirs: Keep 'lib' as default LIBDIR on Arch Linux based systems

Fixes: #15373
This commit is contained in:
Antonio Rojas
2019-08-25 04:46:24 -04:00
committed by Brad King
parent 2a1be178de
commit 18365587c8

View File

@@ -222,7 +222,8 @@ if(NOT DEFINED CMAKE_INSTALL_LIBDIR OR (_libdir_set
# updated to the new default, unless the user explicitly changed it.
endif()
if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$"
AND NOT CMAKE_CROSSCOMPILING)
AND NOT CMAKE_CROSSCOMPILING
AND NOT EXISTS "/etc/arch-release")
if (EXISTS "/etc/debian_version") # is this a debian system ?
if(CMAKE_LIBRARY_ARCHITECTURE)
if("${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/?$")