Skip to content

Commit

Permalink
PROTON-2724: add CMake option to disable building binaries in c/tools (
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Oct 27, 2023
1 parent b3d929c commit 1dc37b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 3 additions & 1 deletion c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1dc37b2

Please sign in to comment.