mirror of
https://github.com/clangen/musikcube.git
synced 2025-02-07 06:40:36 +00:00
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:
parent
10a3863f95
commit
8771e8199f
@ -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)
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user