mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-25 22:30:51 +08:00
cmake: don't use builtin sha1 if not using ws
The builtin SHA1 (ZMQ_USE_BUILTIN_SHA1) is only used in the websocket engine (ws_engine.cpp), so if websockets are disabled, i.e -DENABLE_DRAFTS=OFF, don't add sha1.c to the sources list.
This commit is contained in:
parent
4a5ece54b8
commit
2a75ef07be
@ -234,7 +234,7 @@ if(NOT ZMQ_USE_GNUTLS)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
if(NOT ZMQ_USE_NSS)
|
||||
if(ENABLE_WS AND NOT ZMQ_USE_NSS)
|
||||
list(APPEND sources ${CMAKE_CURRENT_SOURCE_DIR}/external/sha1/sha1.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external/sha1/sha1.h)
|
||||
message(STATUS "Using builtin sha1")
|
||||
|
Loading…
x
Reference in New Issue
Block a user