if(MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS)

To prevent compiler warnings on the unsafe/deprecated methods strcpy, strncpy, gmtime, localtime...
gcc does not accept the safe _s method alternatives.
master
jcdr428 2022-01-23 18:13:00 +01:00
parent 839e3b055f
commit 0ccf21968a
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ endif()
if(MSVC)
add_compile_options("/utf-8")
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
if(WIN32)