Commit 4bfa3bc2 authored by Matthias Möller's avatar Matthias Möller

fix install path on 64-bit windows with 64-bit installer

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20397 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b703e101
......@@ -145,6 +145,11 @@ if (WIN32)
# window NSIS installer
set (CPACK_GENERATOR "NSIS")
if (CMAKE_CL_64) #choose right install directory depending on 32/64 bit
set (CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
else()
set (CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES")
endif()
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
set (CPACK_NSIS_DISPLAY_NAME "${OPENFLIPPER_PRODUCT_NAME} v${CPACK_PACKAGE_VERSION}")
......
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