Commit 0f2b039c authored by saubatn's avatar saubatn

FIXED 32/64 bits architecture deduction for packaging.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1044 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 458aa4e2
......@@ -69,7 +69,13 @@ ${CPACK_SOURCE_IGNORE_FILES}
set(CPACK_SOURCE_GENERATOR "TGZ" "ZIP" )
# Detect processor bits range (32bits / 64bits)
# not the whole architecture (ARM ...).
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(WIN64 TRUE)
else()
set(WIN64 FALSE)
endif()
# ----------------------------------
......@@ -175,7 +181,7 @@ if (MINGW AND PACKAGING_NSIS)
endif()
# Update package name for windows release
if(CMAKE_CL_64) #64 bits installer
if(WIN64) #64 bits installer
set(CPACK_PACKAGE_ARCHITECTURE amd64)
else() #32 bits installer
set(CPACK_PACKAGE_ARCHITECTURE i386)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment