From 0b68f3b81e70a489686e2ea3c4d1cb31be26209e Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 18 Apr 2020 13:56:26 +0200 Subject: [PATCH] cmake: fix zlib defines, keep them local --- client/deps/zlib.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/deps/zlib.cmake b/client/deps/zlib.cmake index 28b42d74c..bb1b63561 100644 --- a/client/deps/zlib.cmake +++ b/client/deps/zlib.cmake @@ -1,6 +1,4 @@ set_property(SOURCE PROPERTY C_STANDARD 99) -add_definitions(-D_ISOC99_SOURCE -DZ_SOLO -DNO_GZIP -DZLIB_PM3_TUNED) -include_directories(../../common/zlib) add_library(z ../../common/zlib/deflate.c @@ -12,4 +10,4 @@ add_library(z ../../common/zlib/inftrees.c ) - +target_compile_definitions(z PRIVATE Z_SOLO NO_GZIP ZLIB_PM3_TUNED)