diff --git a/CMakeLists.txt b/CMakeLists.txt index ea6901642e..5c4f9cbd41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1894,8 +1894,10 @@ elseif(WINDOWS) if(TARGET SDL3-shared AND MSVC AND NOT SDL_LIBC) # Prevent codegen that would use the VC runtime libraries. target_compile_options(SDL3-shared PRIVATE $<$:/GS-> $<$:/Gs1048576>) + target_compile_options(SDL_uclibc PRIVATE $<$:/GS-> $<$:/Gs1048576>) if(SDL_CPU_X86) target_compile_options(SDL3-shared PRIVATE "/arch:SSE") + target_compile_options(SDL3-SDL_uclibc PRIVATE "/arch:SSE") endif() endif()