mirror of
https://codeberg.org/armin/horizont.git
synced 2026-09-01 04:10:46 +02:00
update README
This commit is contained in:
parent
2359bfd579
commit
bb24478a12
2 changed files with 18 additions and 5 deletions
13
cmake/stamp_build_info.cmake
Normal file
13
cmake/stamp_build_info.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Generates HorizontBuildInfo.h with the current wall-clock timestamp.
|
||||
# Run at build time (not configure time) so every build stamps a fresh date.
|
||||
|
||||
set(output "${GENERATED_DIR}/HorizontBuildInfo.h")
|
||||
|
||||
execute_process(
|
||||
COMMAND date "+%Y-%m-%d__%H-%M-%S"
|
||||
OUTPUT_VARIABLE timestamp
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
file(WRITE "${output}"
|
||||
"#pragma once\n"
|
||||
"#define HORIZONT_BUILD_TIMESTAMP \"${timestamp}\"\n")
|
||||
Loading…
Add table
Add a link
Reference in a new issue