From 81bfebfe8c1cd568c945250ac26ac18d92fcd251 Mon Sep 17 00:00:00 2001 From: Zack Galbreath Date: Fri, 20 Mar 2015 15:13:33 -0400 Subject: [PATCH] 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. --- Modules/Platform/Linux.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Platform/Linux.cmake b/Modules/Platform/Linux.cmake index fe8e0039f..e40a74fab 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()