Commit ae00ec9c authored by Lotrado's avatar Lotrado
Browse files

Disabled MSVC warnings C4267 and C4018 when building SDL.

parent 2391a3f3
......@@ -60,6 +60,10 @@ endif()
if(NOT TARGET mirrage::deps::SDL2)
message("Building SDL2 from source")
add_subdirectory(SDL)
if(MSVC)
target_compile_options(SDL2 PRIVATE /wd4267 /wd4018)
target_compile_options(SDL2-static PRIVATE /wd4267 /wd4018)
endif()
add_library(mirrage::deps::SDL2 ALIAS SDL2-static)
add_library(mirrage::deps::SDL2main ALIAS SDL2main)
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment