Syntax fix for OpenBSD CMake support.

This commit is contained in:
casey langen 2021-07-15 22:16:16 -07:00
parent b87c8d1152
commit dfecbe96e5

View File

@ -107,14 +107,14 @@ else()
# pkg_check_modules(NCURSES REQUIRED ncurses panel)
ensure_library_exists(ncurses)
ensure_library_exists(panel)
set(NCURSES_LIBRARIES, ncurses panel)
set(NCURSES_LIBRARIES ncurses panel)
message(STATUS "[ncurses] using library names without 'w' prefix")
else()
# pkg_check_modules fails on some systems, including OpenBSD.
# pkg_check_modules(NCURSES REQUIRED ncursesw panelw)
ensure_library_exists(ncursesw)
ensure_library_exists(panelw)
set(NCURSES_LIBRARIES, ncursesw panelw)
set(NCURSES_LIBRARIES ncursesw panelw)
message(STATUS "[ncurses] using library names with 'w' prefix")
endif()
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ${NCURSES_LIBRARIES} musikcore)