From cde2d48eb95502647d592fd1602d5722db7e0481 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Tue, 9 Jan 2018 18:41:22 +0000 Subject: [PATCH] CMakeLists: CMAKE_CXX_STANDARD as no effect on MSVC until CMake 3.10 We add the /std:c++latest flag to DYNARMIC_CXX_FLAGS to fix this. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b9f4ce5..7b38ad37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,7 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules") # Compiler flags if (MSVC) set(DYNARMIC_CXX_FLAGS + /std:c++latest # CMAKE_CXX_STANDARD as no effect on MSVC until CMake 3.10. /W4 /w34263 # Non-virtual member function hides base class virtual function /w44265 # Class has virtual functions, but destructor is not virtual