From 1e5def741358f874101af6540af2df3af7943d51 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 16 May 2018 20:31:32 -0700 Subject: [PATCH] build: disable msvs 2017 spectre mitigation warning --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cf2c949..c0a841d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()