From 927cf2397a9ddce4a6b2ec460104d83f33231dce Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Tue, 13 Mar 2012 16:24:39 -0700 Subject: For Windows installers, CMake checks the size of void* to differentiate between Windows x86 and x64. --- host/cmake/Modules/UHDPackage.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'host/cmake/Modules') 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() -- cgit v1.2.3