From 3adf4cb97f0f986c3a19fafc42b53555ed8c80b2 Mon Sep 17 00:00:00 2001 From: Nikolay Kasyanov Date: Sat, 5 Nov 2016 12:09:47 +0100 Subject: [PATCH] Link OpenMW with libz on macOS --- CI/before_script.osx.sh | 1 - apps/openmw/CMakeLists.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CI/before_script.osx.sh b/CI/before_script.osx.sh index 32bdd41ae..00a948c65 100755 --- a/CI/before_script.osx.sh +++ b/CI/before_script.osx.sh @@ -10,7 +10,6 @@ mkdir build cd build cmake \ --D CMAKE_EXE_LINKER_FLAGS="-lz" \ -D CMAKE_PREFIX_PATH="$DEPENDENCIES_ROOT;$QT_PATH" \ -D CMAKE_OSX_DEPLOYMENT_TARGET="10.8" \ -D CMAKE_OSX_SYSROOT="macosx10.11" \ diff --git a/apps/openmw/CMakeLists.txt b/apps/openmw/CMakeLists.txt index 58dc2e8e5..332a6f0ac 100644 --- a/apps/openmw/CMakeLists.txt +++ b/apps/openmw/CMakeLists.txt @@ -186,7 +186,7 @@ if(APPLE) if (FFmpeg_FOUND) find_library(COREVIDEO_FRAMEWORK CoreVideo) find_library(VDA_FRAMEWORK VideoDecodeAcceleration) - target_link_libraries(openmw ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK}) + target_link_libraries(openmw z ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK}) endif() endif(APPLE)