mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
cmake: set unknown as LWS_BUILD_HASH if no git repo
This commit is contained in:
parent
c3b1254747
commit
6bb28ef93c
1 changed files with 4 additions and 0 deletions
|
@ -366,6 +366,10 @@ if(GIT_EXECUTABLE)
|
|||
set(LWS_BUILD_HASH ${GIT_USER}@${GIT_HOST}-${GIT_HASH})
|
||||
endif()
|
||||
|
||||
if ("${LWS_BUILD_HASH}" STREQUAL "")
|
||||
set(LWS_BUILD_HASH "unknown")
|
||||
endif()
|
||||
|
||||
message("Git commit hash: ${LWS_BUILD_HASH}")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue