From 4b7d1d65937d6261fe505950b055a8e03577a087 Mon Sep 17 00:00:00 2001 From: jadebenn Date: Tue, 30 Jan 2024 21:49:24 -0600 Subject: [PATCH] trying 'init' flags instead --- CMakeLists.txt | 2 +- CMakePresets.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 }, {