diff --git a/CMakeLists.txt b/CMakeLists.txt index fd672209..b06162f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,7 @@ if(UNIX) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2 -fPIC") elseif(MSVC) # Skip warning for invalid conversion from size_t to uint32_t for all targets below for now - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /permissive- /Zc:inline") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") add_compile_options ("/wd4267" "/utf-8") elseif(WIN32) add_compile_definitions(_CRT_SECURE_NO_WARNINGS) diff --git a/CMakePresets.json b/CMakePresets.json index a0a7cb8d..e15d4a7d 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -35,7 +35,8 @@ "value": "x64" }, "cacheVariables": { - "CMAKE_BUILD_TYPE": "RelWithDebInfo" + "CMAKE_BUILD_TYPE": "Release", + "CMAKE_CXX_FLAGS_INIT": "/W3 /Zc:inline" } }, { @@ -63,7 +64,7 @@ "configurePreset": "ci-windows-2022", "displayName": "Windows CI Build", "description": "This preset is used by the CI build on windows", - "configuration": "RelWithDebInfo", + "configuration": "Release", "jobs": 2 }, {