build: Link SDL3 earlier (#1982)
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled

Hacky workaround for a problem where wxWidgets uses SDL2 and Cemu uses SDL3. See #1982
This commit is contained in:
Samuel
2026-07-12 20:56:18 -04:00
committed by GitHub
parent d8a5f4bac9
commit acb105bd58

View File

@@ -211,6 +211,10 @@ set_target_properties(CemuBin PROPERTIES
OUTPUT_NAME "${OUTPUT_NAME}"
)
if(ENABLE_SDL)
target_link_libraries(CemuBin PRIVATE SDL3::SDL3)
endif()
target_link_libraries(CemuBin PRIVATE
CemuAudio
CemuCafe
@@ -222,10 +226,6 @@ target_link_libraries(CemuBin PRIVATE
CemuUtil
)
if(ENABLE_SDL)
target_link_libraries(CemuBin PRIVATE SDL3::SDL3)
endif()
if(UNIX AND NOT APPLE)
# due to nasm output some linkers will make stack executable
# cemu does not require this so we explicity disable it