| ... | ... | @@ -92,6 +92,12 @@ set(ZIG_SHARED_LLVM off CACHE BOOL "Prefer linking against shared LLVM libraries |
| 92 | 92 | set(ZIG_STATIC_LLVM ${ZIG_STATIC} CACHE BOOL "Prefer linking against static LLVM libraries") |
| 93 | 93 | set(ZIG_STATIC_ZLIB ${ZIG_STATIC} CACHE BOOL "Prefer linking against static zlib") |
| 94 | 94 | set(ZIG_STATIC_ZSTD ${ZIG_STATIC} CACHE BOOL "Prefer linking against static zstd") |
| 95 | if(APPLE AND ZIG_STATIC) |
| 96 | set(ZIG_STATIC_CURSES on) |
| 97 | else() |
| 98 | set(ZIG_STATIC_CURSES off) |
| 99 | endif() |
| 100 | set(ZIG_STATIC_CURSES ${ZIG_STATIC_CURSES} CACHE BOOL "Prefer linking against static curses") |
| 95 | 101 | set(ZIG_USE_CCACHE off CACHE BOOL "Use ccache") |
| 96 | 102 | |
| 97 | 103 | if(ZIG_USE_CCACHE) |
| ... | ... | @@ -160,7 +166,7 @@ if(ZIG_STATIC_ZSTD) |
| 160 | 166 | list(APPEND LLVM_LIBRARIES "${ZSTD}") |
| 161 | 167 | endif() |
| 162 | 168 | |
| 163 | | if(APPLE AND ZIG_STATIC) |
| 169 | if(ZIG_STATIC_CURSES) |
| 164 | 170 | list(REMOVE_ITEM LLVM_LIBRARIES "-lcurses") |
| 165 | 171 | find_library(CURSES NAMES libcurses.a libncurses.a NAMES_PER_DIR |
| 166 | 172 | PATHS |