aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2016-05-23 22:16:39 +0100
committerRui Abreu Ferreira <raf-ep@gmx.com>2016-05-27 23:43:40 +0100
commit46aac2a09af7c2feedd254b48fbbe4726c7d73d3 (patch)
treeaeea79a4f6b0e903f99f979645bbb6f7a0c629af /CMakeLists.txt
parent1d63672c77a7a6307a8c99bd8cea59af3f94286a (diff)
downloadrneovim-46aac2a09af7c2feedd254b48fbbe4726c7d73d3.tar.gz
rneovim-46aac2a09af7c2feedd254b48fbbe4726c7d73d3.tar.bz2
rneovim-46aac2a09af7c2feedd254b48fbbe4726c7d73d3.zip
Windows: Don't build the TUI is systems where it is not supported
The TUI can be enabled/disabled at build time with -DFEAT_TUI, default is ON for UNIX, and OFF for non UNIX. When off, Neovim prints a message to stderr, along with a list of the server endpoints.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 12 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 317d2a1a5b..953e210397 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -300,11 +300,19 @@ include_directories(SYSTEM ${LIBUV_INCLUDE_DIRS})
find_package(Msgpack 1.0.0 REQUIRED)
include_directories(SYSTEM ${MSGPACK_INCLUDE_DIRS})
-find_package(Unibilium REQUIRED)
-include_directories(SYSTEM ${UNIBILIUM_INCLUDE_DIRS})
+if(UNIX)
+ option(FEAT_TUI "Enable the Terminal UI" ON)
+else()
+ option(FEAT_TUI "Enable the Terminal UI" OFF)
+endif()
-find_package(LibTermkey REQUIRED)
-include_directories(SYSTEM ${LIBTERMKEY_INCLUDE_DIRS})
+if(FEAT_TUI)
+ find_package(Unibilium REQUIRED)
+ include_directories(SYSTEM ${UNIBILIUM_INCLUDE_DIRS})
+
+ find_package(LibTermkey REQUIRED)
+ include_directories(SYSTEM ${LIBTERMKEY_INCLUDE_DIRS})
+endif()
find_package(LibVterm REQUIRED)
include_directories(SYSTEM ${LIBVTERM_INCLUDE_DIRS})