From a548ca7b8d7f3bcdb67d28070aef2065cb314f72 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 22 Aug 2015 14:45:45 -0300 Subject: [PATCH] SDL: disable buffer security checks since it requires linking with the CRT. --- libs/SDL2/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/SDL2/CMakeLists.txt b/libs/SDL2/CMakeLists.txt index 8fa87ff6..86641c61 100644 --- a/libs/SDL2/CMakeLists.txt +++ b/libs/SDL2/CMakeLists.txt @@ -1084,7 +1084,8 @@ elseif(WINDOWS) set(SDL_CFLAGS "${SDL_CFLAGS} -Dmain=SDL_main") list(APPEND SDL_LIBS "-lmingw32" "-lSDL2main" "-mwindows") elseif(MSVC) - add_definitions(/arch:SSE) + # Avoids linker errors, since we don't link with the CRT + add_definitions(/arch:SSE /GS-) endif() elseif(APPLE) # TODO: rework this for proper MacOS X, iOS and Darwin support