mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 19:17:47 +00:00
Adding Git Hash to build name.
This commit is contained in:
@@ -26,8 +26,10 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Git QUIET)
|
find_package(Git QUIET)
|
||||||
if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
|
#if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
|
||||||
execute_process(COMMAND ${GIT_EXECUTABLE} describe --always --tags
|
if(EXISTS "${PROJECT_SOURCE_DIR}/.git")
|
||||||
|
# execute_process(COMMAND ${GIT_EXECUTABLE} describe --always --tags
|
||||||
|
execute_process(COMMAND git describe --always --tags
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
RESULT_VARIABLE GIT_RESULT
|
RESULT_VARIABLE GIT_RESULT
|
||||||
OUTPUT_VARIABLE GIT_HASH)
|
OUTPUT_VARIABLE GIT_HASH)
|
||||||
|
|||||||
Reference in New Issue
Block a user