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.
This commit is contained in:
MerryMage 2018-01-09 18:41:22 +00:00
parent f61da0b5a9
commit cde2d48eb9

View file

@ -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