From a40284911cb2b8bd7b8a3454d302db823b4300c0 Mon Sep 17 00:00:00 2001 From: "C. J. Howard" Date: Fri, 24 May 2019 19:03:58 +0800 Subject: [PATCH] Fix NSIS installer installation --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index de4bab3..7a989e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,7 +186,8 @@ elseif(PACKAGE_PLATFORM MATCHES "win") set(CPACK_GENERATOR "ZIP;NSIS") add_custom_command(TARGET dist COMMAND ${CMAKE_COMMAND} -E make_directory ${PACKAGE_DIST_DIR} - COMMAND ${CMAKE_COMMAND} -E copy "${CPACK_PACKAGE_FILE_NAME}-package.zip" "${PACKAGE_DIST_DIR}/${PACKAGE_FILENAME}.zip") + COMMAND ${CMAKE_COMMAND} -E copy "${CPACK_PACKAGE_FILE_NAME}-package.zip" "${PACKAGE_DIST_DIR}/${PACKAGE_FILENAME}.zip" + COMMAND ${CMAKE_COMMAND} -E copy "${CPACK_PACKAGE_FILE_NAME}.exe" "${PACKAGE_DIST_DIR}/${PACKAGE_FILENAME}.exe") elseif(PACKAGE_PLATFORM MATCHES "osx") set(CPACK_GENERATOR "ZIP;NSIS") add_custom_command(TARGET dist