From 1b85020cfaae791c50f4daa4566d12ef224f4eed Mon Sep 17 00:00:00 2001 From: Christopher O'Neill Date: Sat, 29 Jul 2017 17:53:30 +0100 Subject: [PATCH] OSX: Don't use system zzipb and lha libs --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06007bdc..7a546ad6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,8 +175,13 @@ endif() if(UNIX) # zlib is provided by Linux and macOS find_package(ZLIB) - find_package(LHASA) - find_package(ZZIPLIB) + + # We can't use Brew for these due to OSX target version mismatch + # (we're targeting an older version of OSX to increase compatibility) + if(!APPLE) + find_package(LHASA) + find_package(ZZIPLIB) + endif() if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") find_package(ALSA)