summaryrefslogtreecommitdiffstats
path: root/host/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'host/Modules')
-rw-r--r--host/Modules/UHDPackage.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/host/Modules/UHDPackage.cmake b/host/Modules/UHDPackage.cmake
index 7ac677d28..4986e314c 100644
--- a/host/Modules/UHDPackage.cmake
+++ b/host/Modules/UHDPackage.cmake
@@ -21,18 +21,18 @@ INCLUDE(UHDVersion) #sets version information
########################################################################
# Setup additional defines for OS types
########################################################################
-IF(UNIX AND EXISTS "/etc/debian_version")
+IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ SET(LINUX TRUE)
+ENDIF()
+
+IF(LINUX AND EXISTS "/etc/debian_version")
SET(DEBIAN TRUE)
ENDIF()
-IF(UNIX AND EXISTS "/etc/redhat-release")
+IF(LINUX AND EXISTS "/etc/redhat-release")
SET(REDHAT TRUE)
ENDIF()
-IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
- SET(LINUX TRUE)
-ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
-
########################################################################
# Setup package file name
########################################################################