mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Statically link against ncurses on Darwin.
This commit is contained in:
parent
991ac72ca2
commit
1f30a92b63
@ -91,16 +91,21 @@ else()
|
||||
set(PANEL_LIBRARY_NAME panelw)
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
message(STATUS "[ncurses] detected Darwin, linking statically")
|
||||
set(CURSES_LIBRARY_NAME "lib${CURSES_LIBRARY_NAME}.a")
|
||||
set(PANEL_LIBRARY_NAME "lib${PANEL_LIBRARY_NAME}.a")
|
||||
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()
|
||||
|
||||
find_library(LIBNCURSES NAMES ${CURSES_LIBRARY_NAME} PATHS ${VENDOR_LINK_DIRECTORIES})
|
||||
find_library(LIBPANEL NAMES ${PANEL_LIBRARY_NAME} PATHS ${VENDOR_LINK_DIRECTORIES})
|
||||
|
||||
if (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
find_library(LIBTINFO NAMES tinfo)
|
||||
endif()
|
||||
|
||||
message(STATUS "[musikcube] using libncurses at: " ${LIBNCURSES})
|
||||
message(STATUS "[musikcube] using libpanel at: " ${LIBPANEL})
|
||||
message(STATUS "[musikcube] using libpanel at: " ${LIBTINFO})
|
||||
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ${LIBNCURSES} ${LIBPANEL} ${LIBTINFO} musikcore)
|
||||
|
||||
if (ENABLE_PCH MATCHES "true")
|
||||
|
Loading…
Reference in New Issue
Block a user