From c6997b4e18b8a24e8b0e8e3ccb23a8b84fa1fb8f Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Wed, 24 May 2017 10:30:41 +0200 Subject: [PATCH] implement choosing of the database directory depending on the installation options --- cmake/packages/nsis.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/packages/nsis.cmake b/cmake/packages/nsis.cmake index 38c2373d19..eaeeb772b6 100644 --- a/cmake/packages/nsis.cmake +++ b/cmake/packages/nsis.cmake @@ -8,7 +8,8 @@ set(CPACK_NSIS_MODIFY_PATH ON) set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL 1) set(CPACK_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/Installation/Windows/Templates") set(CPACK_PLUGIN_PATH "${CMAKE_CURRENT_SOURCE_DIR}/Installation/Windows/Plugins") - +# want @ in @only nsis template: +set(CPACK_ROOTDIR "@ROOTDIR@") if (CMAKE_CL_64) # this needs to remain a $string for the template: SET(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")