build: disable msvs 2017 spectre mitigation warning

This commit is contained in:
Bert Belder 2018-05-16 20:31:32 -07:00
parent 52c9a3722a
commit 1e5def7413
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -5,6 +5,9 @@ link_libraries(ws2_32)
if(MSVC)
add_compile_options(/Wall /WX /wd4127 /wd4201 /wd4242 /wd4710 /wd4711 /wd4820)
if(MSVC_VERSION GREATER_EQUAL 1914)
add_compile_options(/wd5045)
endif()
else()
add_compile_options(-Wall -Wextra -Werror)
endif()