From 9485d2aa24fcdc29e50a299a7dd066576b40ae80 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Tue, 17 Feb 2026 16:13:28 -0800 Subject: [PATCH] Linux fixup. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 231b35c..501c180 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,6 +73,12 @@ set(CURSES_NEED_WIDE) find_package(Curses REQUIRED) include_directories(${CURSES_INCLUDE_DIR}) +# On Linux, explicitly link ncursesw for wide-character support +if (CMAKE_SYSTEM_NAME STREQUAL "Linux") + find_library(NCURSESW_LIBRARY NAMES ncursesw REQUIRED) + set(CURSES_LIBRARIES ${NCURSESW_LIBRARY}) +endif () + set(SYNTAX_SOURCES syntax/GoHighlighter.cc syntax/CppHighlighter.cc