mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-12 17:12:46 +00:00
Correct messages about whether or not the draft API is being built
If you cloned and built this repo or built it from a submodule, it would always report "Build and install draft classes and methods" which first might be wrong if ENABLE_DRAFTS is OFF but also didn't match the tense of other similar messages about build options.
This commit is contained in:
parent
c45750a29f
commit
4756c04da0
@ -151,19 +151,19 @@ if(APPLE)
|
||||
endif()
|
||||
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
|
||||
message(STATUS "Build and install draft classes and methods")
|
||||
option(ENABLE_DRAFTS "Build and install draft classes and methods" ON)
|
||||
else()
|
||||
message(STATUS "Not building draft classes and methods")
|
||||
option(ENABLE_DRAFTS "Build and install draft classes and methods" OFF)
|
||||
endif()
|
||||
|
||||
# Enable WebSocket transport and RadixTree
|
||||
if(ENABLE_DRAFTS)
|
||||
message(STATUS "Building draft classes and methods")
|
||||
set(ZMQ_BUILD_DRAFT_API 1)
|
||||
option(ENABLE_WS "Enable WebSocket transport" ON)
|
||||
option(ENABLE_RADIX_TREE "Use radix tree implementation to manage subscriptions" ON)
|
||||
else()
|
||||
message(STATUS "Not building draft classes and methods")
|
||||
option(ENABLE_WS "Enable WebSocket transport" OFF)
|
||||
option(ENABLE_RADIX_TREE "Use radix tree implementation to manage subscriptions" OFF)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user