aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2015-10-28 10:45:27 -0700
committerPhilip Balister <philip@opensdr.com>2015-10-28 10:45:27 -0700
commiteebbc01d280b81b3d99948eeef2008f9f10c04c9 (patch)
tree225ae8242595a583f9fcaeebbd0bee47c4ad77d7 /host/cmake
parent9fda11ad1f7630e0c64cfe3a2203ca1f24525512 (diff)
downloaduhd-eebbc01d280b81b3d99948eeef2008f9f10c04c9.tar.gz
uhd-eebbc01d280b81b3d99948eeef2008f9f10c04c9.tar.bz2
uhd-eebbc01d280b81b3d99948eeef2008f9f10c04c9.zip
If we are cross compiling, do not test for build machine distro.
UHD would use the result of the REDHAT test to decide if UHD installed in lib64. So if you did a build for a 64 bit machine on a FEDORA box with OE, it decided to install uhd in /usr/lib64. This is not always the right thing to do. Eventually, we will need to deal with OE builds that use lib64, but we can figure that out when we hit the problem. Signed-off-by: Philip Balister <philip@opensdr.com>
Diffstat (limited to 'host/cmake')
-rw-r--r--host/cmake/Modules/UHDPackage.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/cmake/Modules/UHDPackage.cmake b/host/cmake/Modules/UHDPackage.cmake
index 640935830..08c2a6c53 100644
--- a/host/cmake/Modules/UHDPackage.cmake
+++ b/host/cmake/Modules/UHDPackage.cmake
@@ -27,11 +27,11 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
SET(LINUX TRUE)
ENDIF()
-IF(LINUX AND EXISTS "/etc/debian_version")
+IF(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/debian_version")
SET(DEBIAN TRUE)
ENDIF()
-IF(LINUX AND EXISTS "/etc/redhat-release")
+IF(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/redhat-release")
SET(REDHAT TRUE)
ENDIF()