From 23e8ee13ec023893f79a92ca050512eaf443e3e0 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Fri, 20 Jul 2018 15:34:23 +0200 Subject: [PATCH] Add zlib as dep only if available --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 306ad48..7a4f463 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -575,7 +575,10 @@ if (HAS_SDL) ) endif () - set (SDL2_DEPENDS zlib_Project) + set (SDL2_DEPENDS) + if (HAS_ZLIB) + set (SDL2_DEPENDS zlib_Project) + endif () if (HAS_ALSA) set (SDL2_DEPENDS ${SDL2_DEPENDS} libasound_Project) endif ()