aboutsummaryrefslogtreecommitdiff
path: root/textproc/kf5-sonnet/files/patch-CMakeLists.txt
blob: acba95ad85479c344040d5dd0415217374bfd4a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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()