cmake: Add _CRT_SECURE_NO_WARNINGS to all projects
This prevents issues with using standard C functions, where microsoft would otherwise spit out pointless warnings to encourage using microsoft-specific functions instead.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4152) /* casting func ptr to void */
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user