summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2015-03-20 19:13:33 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-23 13:19:54 (GMT)
commit81bfebfe8c1cd568c945250ac26ac18d92fcd251 (patch)
tree012441a4b54dba63342d744e5cf30a8854add2d3
parentc95e523db87cd503c97ca2a6021614393bb33e0b (diff)
downloadCMake-81bfebfe8c1cd568c945250ac26ac18d92fcd251.zip
CMake-81bfebfe8c1cd568c945250ac26ac18d92fcd251.tar.gz
CMake-81bfebfe8c1cd568c945250ac26ac18d92fcd251.tar.bz2
Linux: Ignore Debian-specific case when cross-compiling
When constructing settings for the target environment during cross compiling we should not check for /etc/debian_version on the host.
-rw-r--r--Modules/Platform/Linux.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Linux.cmake b/Modules/Platform/Linux.cmake
index fe8e003..e40a74f 100644
--- a/Modules/Platform/Linux.cmake
+++ b/Modules/Platform/Linux.cmake
@@ -52,6 +52,6 @@ include(Platform/UnixPaths)
# Debian has lib64 paths only for compatibility so they should not be
# searched.
-if(EXISTS "/etc/debian_version")
+if(NOT CMAKE_CROSSCOMPILING AND EXISTS "/etc/debian_version")
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS FALSE)
endif()