summaryrefslogtreecommitdiffstats
path: root/Modules/GNUInstallDirs.cmake
diff options
context:
space:
mode:
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>2013-12-13 17:09:51 (GMT)
committerBrad King <brad.king@kitware.com>2013-12-19 16:27:30 (GMT)
commitf293d525a1ceb77e041ec71d8d83f8674916d406 (patch)
treec21c4738cf82ad7bc0c9f7dd303e39c6ff62562b /Modules/GNUInstallDirs.cmake
parent5e43d6d3d0285901af816ab1ed37563ea00eaf21 (diff)
downloadCMake-f293d525a1ceb77e041ec71d8d83f8674916d406.zip
CMake-f293d525a1ceb77e041ec71d8d83f8674916d406.tar.gz
CMake-f293d525a1ceb77e041ec71d8d83f8674916d406.tar.bz2
GNUInstallDirs: Use multiarch on Debian with FreeBSD and HURD kernels
Diffstat (limited to 'Modules/GNUInstallDirs.cmake')
-rw-r--r--Modules/GNUInstallDirs.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GNUInstallDirs.cmake b/Modules/GNUInstallDirs.cmake
index c8d77c6..9f5b8a4 100644
--- a/Modules/GNUInstallDirs.cmake
+++ b/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)