From 278862680be8436eea623f8060a29e253395a8b0 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 4 May 2017 03:03:39 +0300 Subject: disable DbgHelp.h warnings --- cxx/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cxx') diff --git a/cxx/CMakeLists.txt b/cxx/CMakeLists.txt index 1c028c0..2c265f5 100644 --- a/cxx/CMakeLists.txt +++ b/cxx/CMakeLists.txt @@ -4,3 +4,9 @@ add_library(aesxx INTERFACE) target_include_directories(aesxx INTERFACE include/) target_include_directories(aesxx SYSTEM INTERFACE ${Boost_INCLUDE_DIRS}) target_link_libraries(aesxx INTERFACE aes) + +if(MSVC_VERSION EQUAL 1900) + # These annoying DbgHelp.h warnings: + # https://connect.microsoft.com/VisualStudio/feedback/details/888527/warnings-on-dbghelp-h + target_compile_options(aesxx INTERFACE /wd4091) +endif() -- cgit v1.2.3