aesthetic change for build info (#7896)

aesthetic change
This commit is contained in:
SoftFever
2025-01-03 00:54:17 +08:00
committed by GitHub
parent 091ab68811
commit d1dfcbe168
2 changed files with 13 additions and 28 deletions

View File

@@ -24,16 +24,6 @@ endif()
find_package(Git)
if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
# Check if Orca is on a tag
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --exact-match --tags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
RESULT_VARIABLE GIT_TAG_CHECK
)
if(NOT GIT_TAG_CHECK EQUAL 0)
add_definitions("-DSNAPSHOT_BUILD=1")
endif()
# Check current Git commit hash
execute_process(
COMMAND ${GIT_EXECUTABLE} log -1 --format=%h