summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2012-03-13 16:24:39 -0700
committerJosh Blum <josh@joshknows.com>2012-03-13 17:26:37 -0700
commit927cf2397a9ddce4a6b2ec460104d83f33231dce (patch)
tree459523cdc458211158b2bfa9562a05c2fab51dc9 /host
parent4d21f75d9fd39a2750500ff16db0a9c66b6ea5ba (diff)
downloaduhd-927cf2397a9ddce4a6b2ec460104d83f33231dce.tar.gz
uhd-927cf2397a9ddce4a6b2ec460104d83f33231dce.tar.bz2
uhd-927cf2397a9ddce4a6b2ec460104d83f33231dce.zip
For Windows installers, CMake checks the size of void* to differentiate between Windows x86 and x64.
Diffstat (limited to 'host')
-rw-r--r--host/cmake/Modules/UHDPackage.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/host/cmake/Modules/UHDPackage.cmake b/host/cmake/Modules/UHDPackage.cmake
index 4dd072c37..432859ccc 100644
--- a/host/cmake/Modules/UHDPackage.cmake
+++ b/host/cmake/Modules/UHDPackage.cmake
@@ -74,7 +74,13 @@ IF((DEBIAN OR REDHAT) AND LSB_RELEASE_EXECUTABLE)
ENDIF()
IF(${CPACK_GENERATOR} STREQUAL NSIS)
- SET(CPACK_PACKAGE_FILE_NAME "uhd_${UHD_VERSION}_win32")
+
+ ENABLE_LANGUAGE(C)
+
+ include(CheckTypeSize)
+ check_type_size("void*[8]" BIT_WIDTH BUILTIN_TYPES_ONLY)
+ SET(CPACK_PACKAGE_FILE_NAME "uhd_${UHD_VERSION}_Win${BIT_WIDTH}")
+
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CMAKE_PROJECT_NAME}")
ENDIF()