From c3c4956ebb3203a4949058e90e805ba92c7cc43d Mon Sep 17 00:00:00 2001 From: lwvmobile <59371473+lwvmobile@users.noreply.github.com> Date: Sat, 19 Feb 2022 06:13:07 -0500 Subject: [PATCH] set(CURSES_NEED_WIDE TRUE) set(CURSES_NEED_WIDE TRUE) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 60fbc5e..03495c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,9 +22,10 @@ find_package(PULSEAUDIO) #also, figure out how to make it build for wide character support in Linux Mint etc, like this -- $(ncursesw5-config --cflags --libs) include_directories(SYSTEM ${LIBSNDFILE_INCLUDE_DIR} ${MBE_INCLUDE_DIR} ${ITPP_INCLUDE_DIR} ${PULSEAUDIO_INCLUDE_DIRS} ${CURSES_INCLUDE_DIR}) set(LIBS ${MBE_LIBRARY} ${LIBSNDFILE_LIBRARY} ${ITPP_LIBRARY} ${PULSEAUDIO_SIMPLE_LIBRARY} ${CURSES_LIBRARY}) -set(CURSES_NEED_WIDE TRUE) + if(Curses_FOUND) + set(CURSES_NEED_WIDE TRUE) include_directories(SYSTEM ${CURSES_INCLUDE_PATH}) list(APPEND LIBS ${CURSES_LIBRARY}) add_definitions(-DUSE_CURSES)