Browse Source

GNUInstallDirs: don't use lib64 on Alpine Linux

Fixes: #22318
Natanael Copa 4 years ago
parent
commit
37b24e0bed
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Modules/GNUInstallDirs.cmake

+ 1 - 0
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)