Browse Source

GNUInstallDirs: Use multiarch on Debian with FreeBSD and HURD kernels

Dimitri John Ledkov 12 năm trước cách đây
mục cha
commit
f293d525a1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Modules/GNUInstallDirs.cmake

+ 1 - 1
Modules/GNUInstallDirs.cmake

@@ -95,7 +95,7 @@ if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
   # For Debian with multiarch, use 'lib/${CMAKE_LIBRARY_ARCHITECTURE}' if
   # CMAKE_LIBRARY_ARCHITECTURE is set (which contains e.g. "i386-linux-gnu"
   # See http://wiki.debian.org/Multiarch
-  if(CMAKE_SYSTEM_NAME MATCHES "Linux"
+  if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$"
       AND NOT CMAKE_CROSSCOMPILING)
     if (EXISTS "/etc/debian_version") # is this a debian system ?
        if(CMAKE_LIBRARY_ARCHITECTURE)