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.
This commit is contained in:
parent
839e3b055f
commit
0ccf21968a
@ -35,6 +35,7 @@ endif()
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("/utf-8")
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
|
Loading…
x
Reference in New Issue
Block a user