trying more variations on the flags

This commit is contained in:
jadebenn 2024-01-30 19:33:59 -06:00
parent 70f3756098
commit 10d7776fb2
2 changed files with 6 additions and 3 deletions

View File

@ -68,6 +68,9 @@ if(UNIX)
endif() endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2 -fPIC") 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
add_compile_options("/wd4267" "/utf-8")
elseif(WIN32) elseif(WIN32)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS) add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
endif() endif()

View File

@ -35,8 +35,8 @@
"value": "x64" "value": "x64"
}, },
"cacheVariables": { "cacheVariables": {
"COMPILE_OPTIONS": "/permissive-;/Zc:inline;/wd4267;/utf-8", "CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_BUILD_TYPE": "RelWithDebInfo" "COMPILE_OPTIONS": "/permissive-;/Zc:inline"
} }
}, },
{ {