From 4756c04da05435c5e7e02fae79cac630fd7a2d48 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Mon, 2 Aug 2021 21:13:13 -0600 Subject: [PATCH] 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. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index df135ad0..da975d25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()