mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Style: Lowercase commands in version.cmake
We made the lowercase names be a consistent style in the main CMake file but we missed this one. [skip ci]
This commit is contained in:
@@ -5,19 +5,19 @@ find_package(Git)
|
|||||||
|
|
||||||
if(GIT_FOUND)
|
if(GIT_FOUND)
|
||||||
# Get interim commit and date of commit
|
# Get interim commit and date of commit
|
||||||
EXECUTE_PROCESS(
|
execute_process(
|
||||||
COMMAND "${GIT_EXECUTABLE}" log -1 --format=%h
|
COMMAND "${GIT_EXECUTABLE}" log -1 --format=%h
|
||||||
OUTPUT_VARIABLE INTERIM_COMMIT
|
OUTPUT_VARIABLE INTERIM_COMMIT
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
)
|
)
|
||||||
|
|
||||||
EXECUTE_PROCESS(
|
execute_process(
|
||||||
COMMAND "${GIT_EXECUTABLE}" log -1 --format=%cd --date=short
|
COMMAND "${GIT_EXECUTABLE}" log -1 --format=%cd --date=short
|
||||||
OUTPUT_VARIABLE COMMIT_DATE
|
OUTPUT_VARIABLE COMMIT_DATE
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
)
|
)
|
||||||
|
|
||||||
EXECUTE_PROCESS(
|
execute_process(
|
||||||
COMMAND "${GIT_EXECUTABLE}" branch --show-current
|
COMMAND "${GIT_EXECUTABLE}" branch --show-current
|
||||||
OUTPUT_VARIABLE BRANCH_NAME
|
OUTPUT_VARIABLE BRANCH_NAME
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
@@ -36,7 +36,7 @@ if("${BRANCH_NAME}" STREQUAL "")
|
|||||||
set(BRANCH_NAME "(branch?)")
|
set(BRANCH_NAME "(branch?)")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
MESSAGE(STATUS "This is interim commit ${INTERIM_COMMIT} (committed ${COMMIT_DATE}) on branch ${BRANCH_NAME}")
|
message(STATUS "This is interim commit ${INTERIM_COMMIT} (committed ${COMMIT_DATE}) on branch ${BRANCH_NAME}")
|
||||||
|
|
||||||
# Take the template file and replace the macros with what we have
|
# Take the template file and replace the macros with what we have
|
||||||
CONFIGURE_FILE(${INPUT_FILE} ${OUTPUT_FILE})
|
configure_file(${INPUT_FILE} ${OUTPUT_FILE})
|
||||||
|
|||||||
Reference in New Issue
Block a user