From b2f89015ef08af5233057e32941f2e9d952cda22 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 10 Dec 2017 14:11:29 -0800 Subject: Updated cmakelists --- External/zlib-1.2.8/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'External') diff --git a/External/zlib-1.2.8/CMakeLists.txt b/External/zlib-1.2.8/CMakeLists.txt index 70bfd65..b7436b0 100644 --- a/External/zlib-1.2.8/CMakeLists.txt +++ b/External/zlib-1.2.8/CMakeLists.txt @@ -41,6 +41,9 @@ add_library( target_link_libraries(ZLib PRIVATE BuildSettings) if(MSVC) + target_compile_definitions(ZLib PRIVATE -D_CRT_SECURE_NO_DEPRECATE) + target_compile_options(ZLib PRIVATE /W3 /wd4131 /wd4127 /wd4244 /wd4996) + # Enable link-time code generation for release builds (I was not able to # find any way to set these settings through interface library BuildSettings) set_target_properties(ZLib PROPERTIES @@ -52,11 +55,6 @@ endif() target_include_directories(ZLib PUBLIC .) -if(MSVC) - target_compile_definitions(ZLib PRIVATE -D_CRT_SECURE_NO_DEPRECATE) - target_compile_options(ZLib PRIVATE /W3 /wd4131 /wd4127 /wd4244 /wd4996) -endif() - source_group("source" FILES ${SOURCE}) source_group("include" FILES ${INCLUDE}) -- cgit v1.2.3