1
0

CMake: Removed SCL warnings from Lua and ZLib.

This commit is contained in:
madmaxoft 2014-01-15 12:01:03 +01:00
parent 20209750aa
commit d23e743303
2 changed files with 9 additions and 0 deletions

View File

@ -27,6 +27,7 @@ if (WIN32)
SET_TARGET_PROPERTIES(lua PROPERTIES PREFIX "../")
SET_TARGET_PROPERTIES(lua PROPERTIES IMPORT_PREFIX "../")
# Remove SCL warnings, we expect this library to have been tested safe
SET_TARGET_PROPERTIES(
lua PROPERTIES COMPILE_FLAGS "-D_CRT_SECURE_NO_WARNINGS"
)

View File

@ -9,3 +9,11 @@ file(GLOB SOURCE
)
add_library(zlib ${SOURCE})
if (MSVC)
# Remove SCL warnings, we expect this library to have been tested safe
SET_TARGET_PROPERTIES(
zlib PROPERTIES COMPILE_FLAGS "-D_CRT_SECURE_NO_WARNINGS"
)
endif()