You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2023/10/27 12:40:25 UTC

(qpid-proton) branch main updated: PROTON-2724: add CMake option to disable building binaries in c/tools (#414)

This is an automated email from the ASF dual-hosted git repository.

jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/main by this push:
     new 1dc37b2e6 PROTON-2724: add CMake option to disable building binaries in c/tools (#414)
1dc37b2e6 is described below

commit 1dc37b2e6456085cd50dadbce0fa1a532bfd8831
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Fri Oct 27 14:40:19 2023 +0200

    PROTON-2724: add CMake option to disable building binaries in c/tools (#414)
---
 CMakeLists.txt   | 1 +
 c/CMakeLists.txt | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b39d597bd..e0f7ebda5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -151,6 +151,7 @@ option(ENABLE_HIDE_UNEXPORTED_SYMBOLS "Only export library symbols that are expl
 option(ENABLE_FUZZ_TESTING "Enable building fuzzers and regression testing with libFuzzer" ${DEFAULT_FUZZ_TESTING})
 option(ENABLE_BENCHMARKS "Enable building and running benchmarks with Google Benchmark" ${DEFAULT_BENCHMARKS})
 
+option(BUILD_TOOLS "Enable building commandline programs to send and receive simple messages" ON)
 option(BUILD_EXAMPLES "Enable building example programs" ON)
 option(BUILD_TLS "Enable building separate TLS library for Proton raw connections" OFF)
 
diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt
index 5567abf0f..d98f0e1ed 100644
--- a/c/CMakeLists.txt
+++ b/c/CMakeLists.txt
@@ -711,7 +711,9 @@ endif (BUILD_EXAMPLES)
 if (BUILD_TESTING)
   add_subdirectory(tests)
 endif (BUILD_TESTING)
-add_subdirectory(tools)
+if (BUILD_TOOLS)
+  add_subdirectory(tools)
+endif (BUILD_TOOLS)
 
 install (DIRECTORY examples/
          DESTINATION "${PROTON_SHARE}/examples/c"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org