diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f6693deb..684e48af4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/musikcube/CMakeLists.txt b/src/musikcube/CMakeLists.txt index 9a929a66e..7a280fd21 100644 --- a/src/musikcube/CMakeLists.txt +++ b/src/musikcube/CMakeLists.txt @@ -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() diff --git a/src/musikcube/cursespp/cursespp/curses_config.h b/src/musikcube/cursespp/cursespp/curses_config.h index 6e795974d..fcd658290 100644 --- a/src/musikcube/cursespp/cursespp/curses_config.h +++ b/src/musikcube/cursespp/cursespp/curses_config.h @@ -40,7 +40,7 @@ #undef MOUSE_MOVED #endif -#if defined(WIN32) || defined(__APPLE__) || defined(NO_NCURSESW) +#if defined(WIN32) || defined(NO_NCURSESW) #include #include #else