blob: a569d4d7c089226e34c6f9e7783b50150a5524d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From b13629a72586c650462c918c0802db06e1ed9352 Mon Sep 17 00:00:00 2001
From: Ismael Luceno <ismael@iodev.co.uk>
Date: Wed, 23 Nov 2016 11:55:10 -0200
Subject: [PATCH 2/2] Add knob to suppress building the nTox client
Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 88ba43b4473c..da7e26391753 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -479,7 +479,8 @@ if(NOT WIN32 AND BUILD_AV_TEST
endif()
endif()
-if(NOT WIN32)
+option(BUILD_NTOX "Build nTox client" ON)
+if(NOT WIN32 AND BUILD_NTOX)
add_c_executable(nTox testing/nTox.c)
target_link_modules(nTox toxcore ${NCURSES_LIBRARIES})
endif()
--
2.10.2
|