mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 00:26:33 +02:00
fix for execute_process call with signtool command
This commit is contained in:
parent
e50e28468c
commit
547d2043e8
1 changed files with 4 additions and 5 deletions
|
@ -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}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue