Can't use 64BIT test here, use CMAKE_SIZEOF_VOID_P instead.

This commit is contained in:
Jonathan Perkin 2010-07-01 14:54:39 +01:00
parent b72c99a157
commit 79c56a01a1

View file

@ -3,8 +3,7 @@ IF(ESSENTIALS)
MESSAGE("Essentials!")
SET(CPACK_COMPONENTS_USED "Server;Client;DataFiles")
SET(CPACK_WIX_UI "WixUI_InstallDir")
MATH(EXPR bits ${CMAKE_SIZEOF_VOID_P}*8)
IF(64BIT)
IF(CMAKE_SIZEOF_VOID_P MATCHES 8)
SET(CPACK_PACKAGE_FILE_NAME "mysql-essential-${VERSION}-winx64")
ELSE()
SET(CPACK_PACKAGE_FILE_NAME "mysql-essential-${VERSION}-win32")