diff options
Diffstat (limited to 'host')
-rw-r--r-- | host/cmake/Modules/UHDPackage.cmake | 4 |
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() |