File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed
Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ if (NOT TARGET ZLIB::ZLIB)
3737endif ()
3838
3939if (NOT TARGET PNG::PNG)
40- set (PNG_BUILD_ZLIB ON CACHE BOOL "Use find_package(zlib) to find ZLib location" )
4140 set (PNG_SHARED OFF CACHE BOOL "Build shared version of libpng" )
4241 set (PNG_TOOLS OFF CACHE BOOL "Build libpng tools" )
4342 set (PNG_TESTS OFF CACHE BOOL "Build libpng tests" )
Original file line number Diff line number Diff line change @@ -44,11 +44,6 @@ set_common_target_properties(ZLib)
4444# Using target_compile_options() adds it before options of the linked libraries.
4545target_link_libraries (ZLib PRIVATE Diligent-BuildSettings NO_WERROR)
4646
47- if (MSVC )
48- target_compile_definitions (ZLib PRIVATE -D_CRT_SECURE_NO_DEPRECATE)
49- target_compile_options (ZLib PRIVATE /W3 /wd4131 /wd4127 /wd4244 /wd4996)
50- endif ()
51-
5247if (PLATFORM_LINUX OR PLATFORM_ANDROID OR PLATFORM_MACOS OR PLATFORM_IOS OR PLATFORM_TVOS OR PLATFORM_WEB)
5348 target_compile_definitions (ZLib PRIVATE HAVE_UNISTD_H)
5449endif ()
@@ -66,8 +61,8 @@ endif()
6661
6762target_include_directories (ZLib PUBLIC ${ZLIB_DIR} )
6863
69- set (ZLIB_INCLUDE_DIRS "${ZLIB_DIR} " CACHE INTERNAL "ZLib include directory" )
70- set (ZLIB_LIBRARIES ZLib CACHE INTERNAL "ZLib library" )
64+ set (ZLIB_INCLUDE_DIR "${ZLIB_DIR} " CACHE INTERNAL "ZLib include directory" )
65+ set (ZLIB_LIBRARY ZLib CACHE INTERNAL "ZLib library" )
7166
7267source_group ("src" FILES ${ZLIB_SOURCE} )
7368source_group ("include" FILES ${ZLIB_INCLUDE} )
@@ -105,7 +100,6 @@ if(${ZLIB_BUILD_MINIZIP})
105100 target_compile_definitions (MiniZip PUBLIC STRICTZIPUNZIP)
106101
107102 if (MSVC )
108- target_compile_definitions (MiniZip PRIVATE -D_CRT_SECURE_NO_DEPRECATE)
109103 target_compile_options (MiniZip PRIVATE /wd4324)
110104 endif ()
111105
You can’t perform that action at this time.
0 commit comments