Milestone 5: deliver embedded RDP sessions and lifecycle hardening
This commit is contained in:
14
third_party/FreeRDP/cmake/today.cmake
vendored
Normal file
14
third_party/FreeRDP/cmake/today.cmake
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# This script returns the current date in ISO format
|
||||
#
|
||||
# YYYY-MM-DD
|
||||
#
|
||||
macro(TODAY RESULT)
|
||||
if(DEFINED ENV{SOURCE_DATE_EPOCH} AND NOT WIN32)
|
||||
execute_process(
|
||||
COMMAND "date" "-u" "-d" "@$ENV{SOURCE_DATE_EPOCH}" "+%Y-%m-%d" OUTPUT_VARIABLE ${RESULT}
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
else()
|
||||
string(TIMESTAMP ${RESULT} "%Y-%m-%d" UTC)
|
||||
endif()
|
||||
endmacro(TODAY)
|
||||
Reference in New Issue
Block a user