MDEV-15088 Lighter version of Windows Zip distributions

Added forgotten code signing command.
This commit is contained in:
Vladislav Vaintroub 2018-09-18 21:30:03 +01:00
parent 09f8941a91
commit 4a026596f5

View file

@ -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}