diff options
author | Patrick Gansterer <paroga@paroga.com> | 2011-06-11 10:14:56 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-04-22 15:30:34 (GMT) |
commit | fe58b67e24d007cb7dcd7005073a37bfba21737d (patch) | |
tree | a09e2ca15da6b9a9df2af6f57efd747eb72f6413 /Modules/CPack.cmake | |
parent | 3a503926018fd10ef2120e2c1b98e93afb4fd0c1 (diff) | |
download | CMake-fe58b67e24d007cb7dcd7005073a37bfba21737d.zip CMake-fe58b67e24d007cb7dcd7005073a37bfba21737d.tar.gz CMake-fe58b67e24d007cb7dcd7005073a37bfba21737d.tar.bz2 |
Added CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL
If CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL is set to ON the NSIS installer will look for a previous installed version and ask the user about uninstall.
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 571770e..707a991 100644 --- a/Modules/CPack.cmake +++ b/Modules/CPack.cmake @@ -341,6 +341,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) |