mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
cmake: git describe --tags
This commit is contained in:
parent
3c3c49f3b2
commit
8140c716b6
1 changed files with 2 additions and 2 deletions
|
@ -172,13 +172,13 @@ find_package(Git)
|
|||
if(GIT_EXECUTABLE)
|
||||
execute_process(
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
COMMAND "${GIT_EXECUTABLE}" describe
|
||||
COMMAND "${GIT_EXECUTABLE}" describe --tags
|
||||
OUTPUT_VARIABLE GIT_HASH
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
set(LWS_BUILD_HASH ${GIT_HASH})
|
||||
|
||||
# appen the build user and hostname
|
||||
# append the build user and hostname
|
||||
if(NOT LWS_REPRODUCIBLE)
|
||||
execute_process(
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
|
|
Loading…
Add table
Reference in a new issue