From 155bb01bd5126f36066653a209a3209f6363a7cd Mon Sep 17 00:00:00 2001 From: Richard Ulrich Date: Wed, 8 May 2013 17:13:31 +0200 Subject: [PATCH] CMakeCPack: Provide an upgrade guid for WiX Set CPACK_WIX_UPGRADE_GUID. Without this upgrade GUID, you end up with multiple instances of the same installation when installing cmake from a WIX generated installer. --- CMakeCPack.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake index a27d00004..2495c4476 100644 --- a/CMakeCPack.cmake +++ b/CMakeCPack.cmake @@ -113,6 +113,8 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") include(Utilities/Release/Cygwin/CMakeLists.txt) endif() + set(CPACK_WIX_UPGRADE_GUID "8ffd1d72-b7f1-11e2-8ee5-00238bca4991") + # Set the options file that needs to be included inside CMakeCPackOptions.cmake set(QT_DIALOG_CPACK_OPTIONS_FILE ${CMake_BINARY_DIR}/Source/QtDialog/QtDialogCPack.cmake) configure_file("${CMake_SOURCE_DIR}/CMakeCPackOptions.cmake.in"