CMake: Removed SCL warnings from Lua and ZLib.
This commit is contained in:
parent
20209750aa
commit
d23e743303
@ -27,6 +27,7 @@ if (WIN32)
|
|||||||
SET_TARGET_PROPERTIES(lua PROPERTIES PREFIX "../")
|
SET_TARGET_PROPERTIES(lua PROPERTIES PREFIX "../")
|
||||||
SET_TARGET_PROPERTIES(lua PROPERTIES IMPORT_PREFIX "../")
|
SET_TARGET_PROPERTIES(lua PROPERTIES IMPORT_PREFIX "../")
|
||||||
|
|
||||||
|
# Remove SCL warnings, we expect this library to have been tested safe
|
||||||
SET_TARGET_PROPERTIES(
|
SET_TARGET_PROPERTIES(
|
||||||
lua PROPERTIES COMPILE_FLAGS "-D_CRT_SECURE_NO_WARNINGS"
|
lua PROPERTIES COMPILE_FLAGS "-D_CRT_SECURE_NO_WARNINGS"
|
||||||
)
|
)
|
||||||
|
@ -9,3 +9,11 @@ file(GLOB SOURCE
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_library(zlib ${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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user