summaryrefslogtreecommitdiffstats
path: root/host/Modules/UHDPackage.cmake
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-04-04 13:10:06 -0700
committerJosh Blum <josh@joshknows.com>2011-04-04 13:10:06 -0700
commit7cd216e967161a0d3a4d7b9bc03583d270ce4de3 (patch)
tree41a492b7009350f29c72e855ca287066ec15e4eb /host/Modules/UHDPackage.cmake
parent721194ec0f832dd9fa7b905bb9ac7b0a06da975e (diff)
downloaduhd-7cd216e967161a0d3a4d7b9bc03583d270ce4de3.tar.gz
uhd-7cd216e967161a0d3a4d7b9bc03583d270ce4de3.tar.bz2
uhd-7cd216e967161a0d3a4d7b9bc03583d270ce4de3.zip
uhd: specify msvc for implementations known only to work on msvc
Diffstat (limited to 'host/Modules/UHDPackage.cmake')
-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
########################################################################