Let's use the less-buggy, brew-provided version of ncurses for improved

compability across terminal emulators that support REP, like kitty.
This commit is contained in:
Casey Langen 2021-01-02 16:03:28 -08:00
parent 10a3863f95
commit 8771e8199f
3 changed files with 5 additions and 1 deletions

View File

@ -83,8 +83,10 @@ endif()
if (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
link_directories ("/usr/local/lib")
link_directories ("/usr/local/opt/openssl/lib")
link_directories ("/usr/local/opt/ncurses/lib")
include_directories("/usr/local/include")
include_directories("/usr/local/opt/openssl/include")
include_directories("/usr/local/opt/ncurses/include")
endif ()
if (EXISTS "/etc/arch-release" OR EXISTS "/etc/manjaro-release" OR NO_NCURSESW)

View File

@ -85,6 +85,8 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
find_package(PkgConfig)
pkg_check_modules(NCURSES REQUIRED ncursesw panelw)
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ${NCURSES_LIBRARIES} musikcore)
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ncursesw panelw musikcore)
else()
target_link_libraries(musikcube ${musikcube_LINK_LIBS} curses panel musikcore)
endif()

View File

@ -40,7 +40,7 @@
#undef MOUSE_MOVED
#endif
#if defined(WIN32) || defined(__APPLE__) || defined(NO_NCURSESW)
#if defined(WIN32) || defined(NO_NCURSESW)
#include <curses.h>
#include <panel.h>
#else