aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2021-02-21 19:58:12 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2021-03-05 13:28:00 +0100
commit5c756bdb0826a88280dc49fb5ecc8b37d8613795 (patch)
treed4af4a43ea3f3e6951a99a7f647f318f997c4c94
parent4c2387ab585d9f45c557225f3b4a18ac95e1859b (diff)
downloadbuildroot-5c756bdb0826a88280dc49fb5ecc8b37d8613795.tar.gz
buildroot-5c756bdb0826a88280dc49fb5ecc8b37d8613795.tar.bz2
package/libuwsc: disable example
BUILD_EXAMPLE=OFF is already passed by cmake-package Fixes: - http://autobuild.buildroot.org/results/f5256d5a3a86112f008506f1910d0600c491a2a0 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit 1b3c8ce97fd023cfaca0a5f3f303572c4c789ef3) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/libuwsc/0001-CMakeLists.txt-add-BUILD_EXAMPLE.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/libuwsc/0001-CMakeLists.txt-add-BUILD_EXAMPLE.patch b/package/libuwsc/0001-CMakeLists.txt-add-BUILD_EXAMPLE.patch
new file mode 100644
index 0000000000..197dd1de0f
--- /dev/null
+++ b/package/libuwsc/0001-CMakeLists.txt-add-BUILD_EXAMPLE.patch
@@ -0,0 +1,34 @@
+From bb71b21eb9407479ad729b3c858b0fc350fae335 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sun, 21 Feb 2021 19:39:59 +0100
+Subject: [PATCH] CMakeLists.txt: add BUILD_EXAMPLE
+
+Allow the user to disable example
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[yann.morin.1998@free.fr: backport from upstream]
+Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
+---
+ CMakeLists.txt | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 110d933..c52ab79 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2,7 +2,11 @@ cmake_minimum_required(VERSION 2.8)
+
+ project(libuwsc C)
+
++option(BUILD_EXAMPLE "Build example" ON)
++
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")
+
+ add_subdirectory(src)
+-add_subdirectory(example)
++if(BUILD_EXAMPLE)
++ add_subdirectory(example)
++endif()
+--
+2.25.1
+