diff --git a/cmake/macros/OptionalWinExecutableSigning.cmake b/cmake/macros/OptionalWinExecutableSigning.cmake index c8ed0e0d4b..998c57ccd8 100644 --- a/cmake/macros/OptionalWinExecutableSigning.cmake +++ b/cmake/macros/OptionalWinExecutableSigning.cmake @@ -29,7 +29,12 @@ macro(optional_win_executable_signing) /td SHA256 \${CMAKE_INSTALL_PREFIX}/${EXECUTABLE_NAME}" ) - install(CODE "execute_process(COMMAND ${SIGN_COMMAND})" COMPONENT ${EXECUTABLE_COMPONENT}) + install(CODE "\ + message(STATUS \"Signing ${EXECUTABLE_NAME} with signtool.\") + execute_process(COMMAND ${SIGN_COMMAND}) + " + COMPONENT ${EXECUTABLE_COMPONENT} + ) else () message(FATAL_ERROR "HF_PFX_PASSPHRASE must be set for executables to be signed.") endif ()