mirror of
https://codeberg.org/armin/terion.git
synced 2026-10-11 16:41:53 +02:00
many UI fixes and new screenshot
This commit is contained in:
parent
5904430490
commit
88ed77a0c6
8 changed files with 43 additions and 29 deletions
|
|
@ -36,14 +36,16 @@ if(NOT GIT_HASH)
|
|||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND git rev-list --count HEAD
|
||||
COMMAND git status --porcelain
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE GIT_LOCAL_COMMITS
|
||||
OUTPUT_VARIABLE GIT_STATUS
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_QUIET
|
||||
)
|
||||
if(NOT GIT_LOCAL_COMMITS)
|
||||
set(GIT_LOCAL_COMMITS "0")
|
||||
if(GIT_STATUS STREQUAL "")
|
||||
set(GIT_DIRTY "clean")
|
||||
else()
|
||||
set(GIT_DIRTY "dirty")
|
||||
endif()
|
||||
|
||||
string(TIMESTAMP BUILD_TIME "%Y-%m-%d %H:%M:%S")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue