mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
silence narrowing conversions in MSVC
we all know they're there, whenever someone fixes it (lol), this should be removed
This commit is contained in:
committed by
majcosta
parent
897f684705
commit
dc72a43a19
@@ -15,6 +15,10 @@ if(ADDRESS_SANITIZER)
|
||||
add_compile_options($<IF:$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>,-fsanitize=address,>)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("/wd4838")
|
||||
endif()
|
||||
|
||||
# whether we are using MSBuild as a generator
|
||||
set(usingMsBuild $<STREQUAL:${CMAKE_VS_PLATFORM_NAME},Win32>)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user