mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 04:52:32 +00:00
Detect Nixpkgs on Darwin
and avoid linking statically against ncurses.
This commit is contained in:
parent
8459265c38
commit
e24827a95a
@ -98,9 +98,11 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
message(STATUS "[ncurses] detected Darwin, linking statically")
|
if (NOT DEFINED ENV{NIX_CC})
|
||||||
set(CURSES_LIBRARY_NAME "lib${CURSES_LIBRARY_NAME}.a")
|
message(STATUS "[ncurses] detected Darwin, linking statically")
|
||||||
set(PANEL_LIBRARY_NAME "lib${PANEL_LIBRARY_NAME}.a")
|
set(CURSES_LIBRARY_NAME "lib${CURSES_LIBRARY_NAME}.a")
|
||||||
|
set(PANEL_LIBRARY_NAME "lib${PANEL_LIBRARY_NAME}.a")
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
message(STATUS "[ncurses] not Darwin! will attempt to link against libtinfo")
|
message(STATUS "[ncurses] not Darwin! will attempt to link against libtinfo")
|
||||||
find_library(LIBTINFO NAMES tinfo)
|
find_library(LIBTINFO NAMES tinfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user