kumquat-buildroot/package/azmq/0001-Conditionally-disable-test-and-doc-builds.patch
RJ Ascani 2fdc07c335 azmq: Add new package
The azmq library provides Boost Asio style bindings for ZeroMQ. This
library is built on top of ZeroMQ's standard C interface and is intended
to work well with C++ applications which use the Boost libraries in
general, and Asio in particular.

Signed-off-by: RJ Ascani <rj.ascani@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2017-08-03 09:12:13 +02:00

44 lines
1.0 KiB
Diff

From d960f93fb52e373f76cfedbee5f4fb0c5276856a Mon Sep 17 00:00:00 2001
From: RJ Ascani <rj.ascani@gmail.com>
Date: Thu, 20 Jul 2017 15:53:40 -0700
Subject: [PATCH] Conditionally disable test and doc builds
Signed-off-by: RJ Ascani <rj.ascani@gmail.com>
---
CMakeLists.txt | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5b5b9cc..97006a4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,7 +49,9 @@ include_directories(${Boost_INCLUDE_DIRS}
${ZeroMQ_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR})
-enable_testing()
+if (BUILD_TESTING)
+ enable_testing()
+endif()
macro(add_catch_test name)
if (TEST_REPORT_FORMAT)
@@ -59,8 +61,12 @@ macro(add_catch_test name)
endif()
endmacro()
-add_subdirectory(test)
-add_subdirectory(doc)
+if (BUILD_TESTING)
+ add_subdirectory(test)
+endif()
+if (BUILD_DOC)
+ add_subdirectory(doc)
+endif()
install(DIRECTORY ${PROJECT_SOURCE_DIR}/azmq
DESTINATION include)
--
2.13.3