From 727a5637d9f51ef32df53ccc63618b1cadec6a75 Mon Sep 17 00:00:00 2001 From: Julian Hille Date: Mon, 9 Sep 2024 00:45:59 +0200 Subject: [PATCH] empfix: always target link to pdfhummus zlib --- src/deps/FreeType/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/deps/FreeType/CMakeLists.txt b/src/deps/FreeType/CMakeLists.txt index 8d06353f..467fb170 100644 --- a/src/deps/FreeType/CMakeLists.txt +++ b/src/deps/FreeType/CMakeLists.txt @@ -70,11 +70,9 @@ endif () # set to use FT_CONFIG_OPTION_SYSTEM_ZLIB...or in other words...another zlib target_compile_definitions(FreeType PUBLIC FT2_BUILD_LIBRARY=1 FT_CONFIG_OPTION_SYSTEM_ZLIB=1) -if(USING_UNBUNDLED_ZLIB) - target_link_libraries(FreeType ZLIB::ZLIB) -else(USING_UNBUNDLED_ZLIB) - target_link_libraries(FreeType PDFHummus::Zlib) -endif(USING_UNBUNDLED_ZLIB) + +target_link_libraries(FreeType PDFHummus::Zlib) + target_include_directories(FreeType