Revert "Update Link SFML usage to SFML 3.x APIs"

This reverts commit e82ae7bb13.

Sorry, somehow I pushed to the wrong branch.
This commit is contained in:
Rafael Kitover 2025-03-29 19:40:59 +00:00
parent e82ae7bb13
commit d5ac2a853b
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 6 additions and 1 deletions

View File

@ -71,7 +71,7 @@ find_package(PkgConfig)
if(TRANSLATIONS_ONLY)
set(ENABLE_LINK_DEFAULT OFF)
else()
find_package(SFML 3.0 COMPONENTS network system)
find_package(SFML 2.4 COMPONENTS network system)
set(ENABLE_LINK_DEFAULT OFF)
if(SFML_FOUND)
set(ENABLE_LINK_DEFAULT ON)
@ -79,6 +79,11 @@ else()
endif()
option(ENABLE_LINK "Enable GBA linking functionality (BROKEN)" ${ENABLE_LINK_DEFAULT})
if(ENABLE_LINK)
# Always disable link for now as SFML 2 is broken and we don't have a replacement yet.
set(ENABLE_LINK OFF CACHE BOOL "Enable GBA linking functionality (BROKEN)" FORCE)
endif()
# FFMpeg
set(FFMPEG_DEFAULT OFF)
set(FFMPEG_COMPONENTS AVCODEC AVFORMAT SWSCALE AVUTIL SWRESAMPLE)