CMakeLists: Enforce C4267 on MSVC

This commit is contained in:
Morph 2022-05-12 00:24:20 -04:00
parent adcc786ef2
commit 77ce1c8f14

View file

@ -33,7 +33,6 @@ if (MSVC)
# /Zc:throwingNew - Let codegen assume `operator new` (without std::nothrow) will never return null
# /external:* - Suppress warnings from external headers
add_compile_options(
/W3
/MP
/permissive-
/EHsc
@ -45,6 +44,10 @@ if (MSVC)
/external:I "${CMAKE_SOURCE_DIR}/externals"
/external:anglebrackets
/external:W0
# Warnings
/W3
/we4267 # 'var': conversion from 'size_t' to 'type', possible loss of data
)
# Since MSVC's debugging information is not very deterministic, so we have to disable it