1
0
Fork 0
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:
Andy Green 2021-04-19 05:44:45 +01:00
parent af1a79c3e5
commit 8b1732a4e8

View file

@ -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()