Exclude SDL2 from Windows compilation.

This causes problems if CMake finds it - these files are not meant to be used on Windows builds
This commit is contained in:
Christoph Oelckers 2025-09-15 22:59:09 +02:00 committed by Rachael Alexanderson
commit dadfade127

View file

@ -259,7 +259,7 @@ else()
endif()
endif()
if(SDL2_FOUND)
if(SDL2_FOUND AND NOT WIN32)
set(ZWIDGET_SOURCES ${ZWIDGET_SOURCES} ${ZWIDGET_SDL2_SOURCES})
set(ZWIDGET_LIBS ${ZWIDGET_LIBS} ${SDL2_LIBRARIES} -lSDL2)
set(ZWIDGET_DEFINES ${ZWIDGET_DEFINES} -DUSE_SDL2)