Skip to content

Commit

Permalink
CMake: Revert the Wii SDL part because it does not work (linker errors)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Jun 6, 2024
1 parent 3ee46d3 commit 3d80a15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,9 @@ elseif(${PLAYER_TARGET_PLATFORM} STREQUAL "switch")
src/platform/switch/ui.h)
target_link_libraries(${PROJECT_NAME} switch-assets)
elseif(${PLAYER_TARGET_PLATFORM} STREQUAL "wii")
find_package(SDL REQUIRED)
target_compile_definitions(${PROJECT_NAME} PUBLIC USE_SDL=1 PLAYER_NINTENDO)
target_include_directories(${PROJECT_NAME} PUBLIC ${SDL_INCLUDE_DIR})
target_sources(${PROJECT_NAME} PRIVATE
src/platform/wii/audio.cpp
src/platform/wii/audio.h
Expand All @@ -688,7 +690,6 @@ elseif(${PLAYER_TARGET_PLATFORM} STREQUAL "wii")
src/platform/sdl/axis.h
src/platform/sdl/sdl_ui.cpp
src/platform/sdl/sdl_ui.h)
player_find_package(NAME SDL1 TARGET SDL::SDLmain REQUIRED)
else()
message(FATAL_ERROR "Invalid target platform")
endif()
Expand Down Expand Up @@ -1228,6 +1229,7 @@ elseif(${PLAYER_TARGET_PLATFORM} MATCHES "^(psvita|3ds|switch|wii)$" OR NINTENDO
add_executable(easyrpg-player src/platform/wii/main.cpp)
target_link_libraries(easyrpg-player
${PROJECT_NAME}
${SDL_LIBRARIES}
-laesnd
-lfat
-lwiikeyboard)
Expand Down

0 comments on commit 3d80a15

Please sign in to comment.