From 65df15a89d7fa129dc92bb6c2538aa4befccd8ab Mon Sep 17 00:00:00 2001 From: cc9cii Date: Sun, 6 Dec 2015 15:26:20 +1100 Subject: [PATCH] Suppress MSVC 2015 warnings about hidden/deleted base class move constructors and move assignment operators. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bd01db606..4395df940 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -704,6 +704,11 @@ if (WIN32) 4800 # Boolean optimization warning, e.g. myBool = (myInt != 0) instead of myBool = myInt ) + # MSVC 2015 + if (MSVC_VERSION GREATER 1899) + set(WARNINGS_DISABLE ${WARNINGS_DISABLE} 5026 5027) + endif() + foreach(d ${WARNINGS_DISABLE}) set(WARNINGS "${WARNINGS} /wd${d}") endforeach(d)