From 547d2043e8eb86668b6a468e115a67ef265f6ae8 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 12 Jan 2016 16:12:03 -0800 Subject: [PATCH] fix for execute_process call with signtool command --- cmake/macros/OptionalWinExecutableSigning.cmake | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmake/macros/OptionalWinExecutableSigning.cmake b/cmake/macros/OptionalWinExecutableSigning.cmake index 998c57ccd8..a79a9b0cf9 100644 --- a/cmake/macros/OptionalWinExecutableSigning.cmake +++ b/cmake/macros/OptionalWinExecutableSigning.cmake @@ -25,13 +25,12 @@ macro(optional_win_executable_signing) endif () # setup the post install command to sign the executable - set(SIGN_COMMAND "${SIGNTOOL_EXEC} sign /f $ENV{HF_PFX_FILE} /p $ENV{HF_PFX_PASSPHRASE} /tr http://tsa.starfieldtech.com\ - /td SHA256 \${CMAKE_INSTALL_PREFIX}/${EXECUTABLE_NAME}" - ) install(CODE "\ - message(STATUS \"Signing ${EXECUTABLE_NAME} with signtool.\") - execute_process(COMMAND ${SIGN_COMMAND}) + message(STATUS \"Signing ${TARGET_NAME} with signtool.\") + execute_process(COMMAND ${SIGNTOOL_EXEC} sign /f $ENV{HF_PFX_FILE}\ + /p $ENV{HF_PFX_PASSPHRASE} /tr http://tsa.starfieldtech.com\ + /td SHA256 \${CMAKE_INSTALL_PREFIX}/${EXECUTABLE_NAME}) " COMPONENT ${EXECUTABLE_COMPONENT} )