diff --git a/CMakeLists.txt b/CMakeLists.txt index fb4794f5b..d0db8741f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,9 @@ if(USE_GCC_STD_14) endif() if(MSVC) + # Disable non-standard conversion from string literal to (nonconst) char* + list(APPEND OC_CXX_FLAGS /Zc:strictStrings) + list(APPEND OC_CXX_FLAGS /MP) list(REMOVE_ITEM OC_CXX_FLAGS_DEBUG /Gm)