Browse Source

MSVC disable warning for unecure CRT functions (for example strcpy)

pull/2405/head
obligaron 5 years ago committed by Anders Jenbo
parent
commit
b08c8aa0ed
  1. 1
      CMakeLists.txt

1
CMakeLists.txt

@ -835,6 +835,7 @@ endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
target_compile_options(libdevilutionx PUBLIC "/W3")
target_compile_definitions(libdevilutionx PUBLIC _CRT_SECURE_NO_WARNINGS)
target_compile_options(libdevilutionx PUBLIC "/Zc:__cplusplus")
endif()

Loading…
Cancel
Save