
See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable.
4 lines
123 B
CMake
4 lines
123 B
CMake
set(ENV{SOURCE_DATE_EPOCH} "invalid-integer")
|
|
string(TIMESTAMP RESULT "%Y-%m-%d %H:%M:%S" UTC)
|
|
message("RESULT=${RESULT}")
|