mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-05 21:55:24 +00:00
When building a static archive on macOS, statically link against the
brew version of curses.
This commit is contained in:
parent
8e72d1ba09
commit
47cb367d5d
@ -86,7 +86,24 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
|||||||
pkg_check_modules(NCURSES REQUIRED ncursesw panelw)
|
pkg_check_modules(NCURSES REQUIRED ncursesw panelw)
|
||||||
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ${NCURSES_LIBRARIES} musikcore)
|
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ${NCURSES_LIBRARIES} musikcore)
|
||||||
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ncursesw panelw musikcore)
|
if (${LINK_STATICALLY} MATCHES "true")
|
||||||
|
find_library(
|
||||||
|
NCURSESWLIB
|
||||||
|
NAMES libncursesw.a ncursesw
|
||||||
|
PATHS "/usr/local/opt/ncurses/lib/")
|
||||||
|
|
||||||
|
find_library(
|
||||||
|
PANELWLIB
|
||||||
|
NAMES libpanelw.a panelw
|
||||||
|
PATHS "/usr/local/opt/ncurses/lib/")
|
||||||
|
|
||||||
|
message(STATUS "[musikcube] using libncursesw at " ${NCURSESWLIB})
|
||||||
|
message(STATUS "[musikcube] using libpanelw at " ${PANELWLIB})
|
||||||
|
|
||||||
|
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ${NCURSESWLIB} ${PANELWLIB} musikcore)
|
||||||
|
else()
|
||||||
|
target_link_libraries(musikcube ${musikcube_LINK_LIBS} ncursesw panelw musikcore)
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
target_link_libraries(musikcube ${musikcube_LINK_LIBS} curses panel musikcore)
|
target_link_libraries(musikcube ${musikcube_LINK_LIBS} curses panel musikcore)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user