mirror of
https://github.com/arcan1s/queued.git
synced 2025-07-14 22:35:48 +00:00
start working on C++ implementation
This commit is contained in:
11
sources/checkgit.cmake
Normal file
11
sources/checkgit.cmake
Normal file
@ -0,0 +1,11 @@
|
||||
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 ()
|
Reference in New Issue
Block a user