Update SDL2 CMake configuration to include WIN32 support

- Modified the preprocessor directive to include WIN32 in the condition for adding the SDL subdirectory, ensuring compatibility across additional Windows platforms.
This commit is contained in:
scawful
2025-09-26 11:54:43 -04:00
parent 626dbbe0d7
commit 6bfecb475e

View File

@@ -1,5 +1,5 @@
# SDL2 # SDL2
if (UNIX OR MINGW) if (UNIX OR MINGW OR WIN32)
add_subdirectory(src/lib/SDL) add_subdirectory(src/lib/SDL)
# When using bundled SDL, use the static target # When using bundled SDL, use the static target
set(SDL_TARGETS SDL2-static) set(SDL_TARGETS SDL2-static)