Skip to content

Commit 996508e

Browse files
committed
Fix macos Ventura build fix
1 parent 97f95f7 commit 996508e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ elseif(UNIX OR MINGW OR CYGWIN)
106106
pkg_check_modules(PKG_SDLGFX REQUIRED SDL_gfx)
107107
pkg_check_modules(PKG_SDLMIXER REQUIRED SDL_mixer)
108108
pkg_check_modules(PKG_YAMLCPP REQUIRED yaml-cpp)
109+
pkg_check_modules(PKG_WEBP REQUIRED libwebp)
109110

110111
include_directories(${PKG_SDL_INCLUDE_DIRS} ${PKG_ZLIB_INCLUDE_DIRS} ${PKG_SDLIMAGE_INCLUDE_DIRS})
111112
include_directories(${PKG_SDLGFX_INCLUDE_DIRS} ${PKG_SDLMIXER_INCLUDE_DIRS} ${PKG_YAMLCPP_INCLUDE_DIRS})
112-
set(PKG_DEPS_LDFLAGS ${PKG_SDL_LDFLAGS} ${PKG_ZLIB_LDFLAGS} ${PKG_SDLIMAGE_LDFLAGS} ${PKG_SDLGFX_LDFLAGS} ${PKG_SDLMIXER_LDFLAGS} ${PKG_YAMLCPP_LDFLAGS} ${OPENGL_LIBRARIES})
113+
set(PKG_DEPS_LDFLAGS ${PKG_SDL_LDFLAGS} ${PKG_ZLIB_LDFLAGS} ${PKG_SDLIMAGE_LDFLAGS} ${PKG_SDLGFX_LDFLAGS} ${PKG_SDLMIXER_LDFLAGS} ${PKG_YAMLCPP_LDFLAGS} ${PKG_WEBP_LDFLAGS} ${OPENGL_LIBRARIES})
113114

114115
if (UNIX)
115116
set(PKG_DEPS_LDFLAGS "${PKG_DEPS_LDFLAGS};dl")

README-OSX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The dependencies you require are following:
1313

1414
We recommend using [Homebrew](https://brew.sh) to facilitate this. With a working brew utility installed, run the following:
1515
```
16-
$ brew install cmake yaml-cpp --with-static-lib sdl sdl_gfx sdl_image sdl_mixer --with-flac --with-libmikmod --with-libvorbis --with-static-lib
16+
$ brew install cmake yaml-cpp sdl12-compact sdl_gfx sdl_image sdl_mixer webp
1717
```
1818
This should install all of these necessary dependencies to their appropriate place under /usr/local.
1919

0 commit comments

Comments
 (0)