mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-01 00:39:41 +01:00
20 lines
556 B
CMake
20 lines
556 B
CMake
|
# Expects INPUT_FILE and OUTPUT_FILE to be defined
|
||
|
|
||
|
# Get interim commit and date of commit
|
||
|
EXECUTE_PROCESS(
|
||
|
COMMAND "${GIT_EXECUTABLE}" log -1 --format=%h
|
||
|
OUTPUT_VARIABLE INTERIM_COMMIT
|
||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||
|
)
|
||
|
|
||
|
EXECUTE_PROCESS(
|
||
|
COMMAND "${GIT_EXECUTABLE}" log -1 --format=%cs
|
||
|
OUTPUT_VARIABLE COMMIT_DATE
|
||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||
|
)
|
||
|
|
||
|
MESSAGE(STATUS "This is interim commit ${INTERIM_COMMIT} (committed ${COMMIT_DATE})")
|
||
|
|
||
|
# Take the template file and replace the macros with what we have
|
||
|
CONFIGURE_FILE(${INPUT_FILE} ${OUTPUT_FILE})
|