From 3e1deba3a23bd290b7bd40955885544ce5504f9e Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sun, 17 Sep 2023 18:13:00 +0600 Subject: [PATCH] Make miniz an object library --- thirdparty/miniz/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thirdparty/miniz/CMakeLists.txt b/thirdparty/miniz/CMakeLists.txt index b5a5529..5d90673 100644 --- a/thirdparty/miniz/CMakeLists.txt +++ b/thirdparty/miniz/CMakeLists.txt @@ -4,6 +4,6 @@ if (MSVC) set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4244" ) endif() -add_library( miniz miniz.c ) +add_library( miniz OBJECT miniz.c ) target_compile_definitions( miniz PRIVATE -DMINIZ_NO_STDIO ) -target_include_directories( miniz INTERFACE "$" ) \ No newline at end of file +target_include_directories( miniz INTERFACE "$" )