Support default __stdcall calling convention on tests as well

This commit is contained in:
Zach Hindes
2018-09-12 15:32:30 -05:00
parent ad2cb5b7ea
commit f25b8448e4
18 changed files with 21 additions and 19 deletions

View File

@@ -49,6 +49,8 @@ if (ENABLE_CUSTOM_COMPILER_FLAGS)
-Wswitch-enum
)
elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
# Disable warning c4001 - nonstandard extension 'single line comment' was used
# Define _CRT_SECURE_NO_WARNINGS to disable deprecation warnings for "insecure" C library functions
list(APPEND custom_compiler_flags
/GS
/Za