From 4a026596f53f59619941c0e3ce5d36a056b6bd2e Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Tue, 18 Sep 2018 21:30:03 +0100 Subject: [PATCH] MDEV-15088 Lighter version of Windows Zip distributions Added forgotten code signing command. --- win/packaging/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/win/packaging/CMakeLists.txt b/win/packaging/CMakeLists.txt index b3ccaaa308f..4bd34c86a40 100644 --- a/win/packaging/CMakeLists.txt +++ b/win/packaging/CMakeLists.txt @@ -207,8 +207,13 @@ IF(CMAKE_GENERATOR MATCHES "Visual Studio") SET(CPACK_CONFIG_PARAM -C $(Configuration)) ENDIF() +IF(SIGNCODE) + SET(SIGN_COMMAND COMMAND ${CMAKE_COMMAND} -P ${PROJECT_BINARY_DIR}/sign.cmake) +ENDIF() + ADD_CUSTOM_TARGET( win_package + ${SIGN_COMMAND} COMMAND cpack ${CPACK_CONFIG_PARAM} --config ${CMAKE_CURRENT_SOURCE_DIR}/CPackZipConfig.cmake COMMAND cpack ${CPACK_CONFIG_PARAM} --config ${CMAKE_CURRENT_SOURCE_DIR}/CPackZipDebugInfoConfig.cmake WORKING_DIRECTORY ${CMAKE_BINARY_DIR}