From 74c5ce3da1054b88a19f8e9f79d4492ec271ea1f Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Sat, 14 Aug 2021 19:26:37 +0200 Subject: [PATCH] Overlay: also link against zlib, when using freetype --- Components/Overlay/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Components/Overlay/CMakeLists.txt b/Components/Overlay/CMakeLists.txt index 58edafa5064..7f88836a441 100644 --- a/Components/Overlay/CMakeLists.txt +++ b/Components/Overlay/CMakeLists.txt @@ -54,6 +54,9 @@ if(FREETYPE_FOUND) target_compile_definitions(OgreOverlay PRIVATE HAVE_FREETYPE) target_link_libraries(OgreOverlay PRIVATE ${FREETYPE_LIBRARIES}) target_include_directories(OgreOverlay PRIVATE ${FREETYPE_INCLUDE_DIRS}) + if(ZLIB_FOUND) + target_link_libraries(OgreOverlay PRIVATE ZLIB::ZLIB) + endif() elseif(UNIX) set_source_files_properties(src/OgreFont.cpp PROPERTIES COMPILE_FLAGS "-Wno-cast-qual -Wno-unused-function")