mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:41:20 +02:00
Use optional environment variable for timestamp server URL
This commit is contained in:
parent
fd245b61ab
commit
75e1437274
2 changed files with 6 additions and 1 deletions
|
@ -52,6 +52,11 @@ else()
|
||||||
set(MOBILE 0)
|
set(MOBILE 0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Use default time server if none defined in environment
|
||||||
|
if (NOT DEFINED TIMESERVER_URL)
|
||||||
|
set(TIMESERVER_URL "http://sha256timestamp.ws.symantec.com/sha256/timestamp")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(HIFI_USE_OPTIMIZED_IK OFF)
|
set(HIFI_USE_OPTIMIZED_IK OFF)
|
||||||
set(BUILD_CLIENT_OPTION ON)
|
set(BUILD_CLIENT_OPTION ON)
|
||||||
set(BUILD_SERVER_OPTION ON)
|
set(BUILD_SERVER_OPTION ON)
|
||||||
|
|
|
@ -22,7 +22,7 @@ macro(optional_win_executable_signing)
|
||||||
# setup a post build command to sign the executable
|
# setup a post build command to sign the executable
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ${TARGET_NAME} POST_BUILD
|
TARGET ${TARGET_NAME} POST_BUILD
|
||||||
COMMAND ${SIGNTOOL_EXECUTABLE} sign /fd sha256 /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp /td SHA256 ${EXECUTABLE_PATH}
|
COMMAND ${SIGNTOOL_EXECUTABLE} sign /fd sha256 /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr ${TIMESERVER_URL} /td SHA256 ${EXECUTABLE_PATH}
|
||||||
)
|
)
|
||||||
else ()
|
else ()
|
||||||
message(FATAL_ERROR "HF_PFX_PASSPHRASE must be set for executables to be signed.")
|
message(FATAL_ERROR "HF_PFX_PASSPHRASE must be set for executables to be signed.")
|
||||||
|
|
Loading…
Reference in a new issue