trying 'init' flags instead

This commit is contained in:
jadebenn 2024-01-30 21:49:24 -06:00
parent 3fa80063e9
commit 4b7d1d6593
2 changed files with 4 additions and 3 deletions

View File

@ -70,7 +70,7 @@ if(UNIX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2 -fPIC") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2 -fPIC")
elseif(MSVC) elseif(MSVC)
# Skip warning for invalid conversion from size_t to uint32_t for all targets below for now # 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") add_compile_options ("/wd4267" "/utf-8")
elseif(WIN32) elseif(WIN32)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS) add_compile_definitions(_CRT_SECURE_NO_WARNINGS)

View File

@ -35,7 +35,8 @@
"value": "x64" "value": "x64"
}, },
"cacheVariables": { "cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo" "CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS_INIT": "/W3 /Zc:inline"
} }
}, },
{ {
@ -63,7 +64,7 @@
"configurePreset": "ci-windows-2022", "configurePreset": "ci-windows-2022",
"displayName": "Windows CI Build", "displayName": "Windows CI Build",
"description": "This preset is used by the CI build on windows", "description": "This preset is used by the CI build on windows",
"configuration": "RelWithDebInfo", "configuration": "Release",
"jobs": 2 "jobs": 2
}, },
{ {