| ... | @@ -98,16 +98,6 @@ else() | ... | @@ -98,16 +98,6 @@ else() |
| 98 | set(ZIG_STATIC_CURSES off) | 98 | set(ZIG_STATIC_CURSES off) |
| 99 | endif() | 99 | endif() |
| 100 | set(ZIG_STATIC_CURSES ${ZIG_STATIC_CURSES} CACHE BOOL "Prefer linking against static curses") | 100 | set(ZIG_STATIC_CURSES ${ZIG_STATIC_CURSES} CACHE BOOL "Prefer linking against static curses") |
| 101 | set(ZIG_USE_CCACHE off CACHE BOOL "Use ccache") | | |
| 102 | | | |
| 103 | if(ZIG_USE_CCACHE) | | |
| 104 | find_program(CCACHE_PROGRAM ccache) | | |
| 105 | if(CCACHE_PROGRAM) | | |
| 106 | set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") | | |
| 107 | else() | | |
| 108 | message(SEND_ERROR "ccache requested but not found") | | |
| 109 | endif() | | |
| 110 | endif() | | |
| 111 | | 101 | |
| 112 | if (ZIG_SHARED_LLVM AND ZIG_STATIC_LLVM) | 102 | if (ZIG_SHARED_LLVM AND ZIG_STATIC_LLVM) |
| 113 | message(SEND_ERROR "-DZIG_SHARED_LLVM and -DZIG_STATIC_LLVM cannot both be enabled simultaneously") | 103 | message(SEND_ERROR "-DZIG_SHARED_LLVM and -DZIG_STATIC_LLVM cannot both be enabled simultaneously") |