mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Fix OpenBSD build
This commit is contained in:
parent
4388bb5100
commit
6f517b6663
@ -24,4 +24,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR
|
||||
"${BSD_PATH_PREFIX}/lib"
|
||||
"${BSD_PATH_PREFIX}/opt/openssl/lib"
|
||||
"${BSD_PATH_PREFIX}/opt/ncurses/lib")
|
||||
|
||||
include_directories("${BSD_PATH_PREFIX}/include")
|
||||
link_directories("${BSD_PATH_PREFIX}/lib")
|
||||
endif ()
|
@ -104,9 +104,14 @@ if (APPLE)
|
||||
set(PANEL_LIBRARY_NAME "lib${PANEL_LIBRARY_NAME}.a")
|
||||
endif()
|
||||
else()
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
|
||||
message(STATUS "[ncurses] detected OpenBSD, unsetting LIBTINFO")
|
||||
set(LIBTINFO "")
|
||||
else()
|
||||
message(STATUS "[ncurses] not Darwin! will attempt to link against libtinfo")
|
||||
find_library(LIBTINFO NAMES tinfo)
|
||||
message(STATUS "[musikcube] using libtinfo at: " ${LIBTINFO})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_library(LIBNCURSES NAMES ${CURSES_LIBRARY_NAME} PATHS ${VENDOR_LINK_DIRECTORIES})
|
||||
|
Loading…
Reference in New Issue
Block a user