mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
12 lines
236 B
CMake
12 lines
236 B
CMake
exec_program(
|
|
"git"
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
ARGS "log" "-1" "--format=\"%h\""
|
|
OUTPUT_VARIABLE COMMIT_SHA
|
|
RETURN_VALUE GIT_RETURN
|
|
)
|
|
|
|
if(${GIT_RETURN} EQUAL "0")
|
|
set(PROJECT_COMMIT_SHA "${COMMIT_SHA}")
|
|
endif()
|