mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +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,>)
|
add_compile_options($<IF:$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>,-fsanitize=address,>)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
add_compile_options("/wd4838")
|
||||||
|
endif()
|
||||||
|
|
||||||
# whether we are using MSBuild as a generator
|
# whether we are using MSBuild as a generator
|
||||||
set(usingMsBuild $<STREQUAL:${CMAKE_VS_PLATFORM_NAME},Win32>)
|
set(usingMsBuild $<STREQUAL:${CMAKE_VS_PLATFORM_NAME},Win32>)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user