summaryrefslogtreecommitdiffstats
path: root/External
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-10 22:11:29 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-10 22:11:29 +0000
commitb2f89015ef08af5233057e32941f2e9d952cda22 (patch)
tree9822809f7ec68e040f205ffed7afaf406dc0d07f /External
parentUpdated cmake lists: enabled link-time code generation for MSVC (diff)
downloadDiligentTools-b2f89015ef08af5233057e32941f2e9d952cda22.tar.gz
DiligentTools-b2f89015ef08af5233057e32941f2e9d952cda22.zip
Updated cmakelists
Diffstat (limited to 'External')
-rw-r--r--External/zlib-1.2.8/CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
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})