fix for execute_process call with signtool command

This commit is contained in:
Stephen Birarda 2016-01-12 16:12:03 -08:00
parent e50e28468c
commit 547d2043e8

View file

@ -25,13 +25,12 @@ macro(optional_win_executable_signing)
endif () endif ()
# setup the post install command to sign the executable # 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 "\ install(CODE "\
message(STATUS \"Signing ${EXECUTABLE_NAME} with signtool.\") message(STATUS \"Signing ${TARGET_NAME} with signtool.\")
execute_process(COMMAND ${SIGN_COMMAND}) 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} COMPONENT ${EXECUTABLE_COMPONENT}
) )