summaryrefslogtreecommitdiff
path: root/net-im/tdlib/files/patch-CMakeLists.txt
blob: fa81fa16eb1a37eed4f0bf9fdfb9af3854c57821 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- make tests and benchmarks conditional on special cmake variables, see https://github.com/tdlib/td/issues/1583

--- CMakeLists.txt.orig	2021-05-20 23:05:03 UTC
+++ CMakeLists.txt
@@ -189,9 +189,11 @@ add_subdirectory(sqlite)
 
 add_subdirectory(tddb)
 
+if (BUILD_TESTING)
 add_subdirectory(test)
+endif()
 
-if (NOT CMAKE_CROSSCOMPILING)
+if (FREEBSD_BUILD_BENCHMARKS AND NOT CMAKE_CROSSCOMPILING)
   add_subdirectory(benchmark)
 endif()