Merge branch 'master' into clangen/upstream-pdcurses

This commit is contained in:
casey langen 2020-03-13 18:26:24 -07:00
commit dbf20187bf

View File

@ -78,7 +78,9 @@ add_definitions(-DNCURSES_WIDECHAR)
set_target_properties(musikcube PROPERTIES LINK_FLAGS "-Wl,-rpath,./")
if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ncursesw panelw musikcore)
find_package(PkgConfig)
pkg_check_modules(NCURSES REQUIRED ncursesw panelw)
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ${NCURSES_LIBRARIES} musikcore)
else()
target_link_libraries(musikcube ${musikcube_LINK_LIBS} curses panel musikcore)
endif()