aboutsummaryrefslogtreecommitdiff
path: root/textproc/kf5-sonnet/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/kf5-sonnet/files/patch-CMakeLists.txt')
-rw-r--r--textproc/kf5-sonnet/files/patch-CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/textproc/kf5-sonnet/files/patch-CMakeLists.txt b/textproc/kf5-sonnet/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..acba95ad8547
--- /dev/null
+++ b/textproc/kf5-sonnet/files/patch-CMakeLists.txt
@@ -0,0 +1,13 @@
+Allow disabling building examples, as they are not installed anyways.
+
+--- CMakeLists.txt.orig 2019-06-23 11:56:17 UTC
++++ CMakeLists.txt
+@@ -53,7 +53,7 @@ if (NOT CMAKE_CROSSCOMPILING)
+ add_subdirectory(data)
+ endif()
+
+-if(TARGET Qt5::Widgets)
++if((TARGET Qt5::Widgets) AND (ENABLE_EXAMPLES))
+ add_subdirectory(examples)
+ endif()
+