diff options
author | David Cole <david.cole@kitware.com> | 2012-04-25 18:06:29 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-04-25 18:06:29 (GMT) |
commit | 419f561b2f554b0fd92482c79ba49be0e3f7875e (patch) | |
tree | 82ec3cee8349065ad79bd664d73844d2f2680cf1 /Modules/CPack.cmake | |
parent | 4b4a98d72298e892b17aa0d14462bab7836a7c1d (diff) | |
parent | fe58b67e24d007cb7dcd7005073a37bfba21737d (diff) | |
download | CMake-419f561b2f554b0fd92482c79ba49be0e3f7875e.zip CMake-419f561b2f554b0fd92482c79ba49be0e3f7875e.tar.gz CMake-419f561b2f554b0fd92482c79ba49be0e3f7875e.tar.bz2 |
Merge topic 'fix-9946-uninstall-before-install'
fe58b67 Added CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL
Diffstat (limited to 'Modules/CPack.cmake')
-rw-r--r-- | Modules/CPack.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake index 1b2fa61..e572119 100644 --- a/Modules/CPack.cmake +++ b/Modules/CPack.cmake @@ -342,6 +342,10 @@ cpack_set_if_not_set(CPACK_RESOURCE_FILE_WELCOME cpack_set_if_not_set(CPACK_MODULE_PATH "${CMAKE_MODULE_PATH}") +IF(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL) + SET(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON) +ENDIF(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL) + IF(CPACK_NSIS_MODIFY_PATH) SET(CPACK_NSIS_MODIFY_PATH ON) ENDIF(CPACK_NSIS_MODIFY_PATH) |