Skip to content

Commit

Permalink
Switch: Fixup finding EGL header. Thanks @Ghabry!
Browse files Browse the repository at this point in the history
  • Loading branch information
carstene1ns committed Mar 20, 2022
1 parent e18c221 commit 2a0b660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ elseif(${PLAYER_TARGET_PLATFORM} STREQUAL "switch")
endif()
find_package(OpenGL CONFIG REQUIRED)
find_library(GLAD glad REQUIRED)
target_link_libraries(${PROJECT_NAME} OpenGL::EGL)
# generate gfx assets
enable_language(ASM)
dkp_generate_binary_embed_sources(PLAYER_SWITCH_ASSETS "${CMAKE_CURRENT_SOURCE_DIR}/resources/switch/touch_ui.png")
Expand Down Expand Up @@ -959,8 +960,7 @@ elseif(${PLAYER_TARGET_PLATFORM} MATCHES "^(psvita|3ds|switch|wii)$")
elseif(NINTENDO_SWITCH)
target_link_libraries(easyrpg-player
${PROJECT_NAME}
${GLAD}
OpenGL::EGL)
${GLAD})
nx_generate_nacp(easyrpg-player.nacp
NAME "EasyRPG Player"
AUTHOR "EasyRPG Team"
Expand Down

0 comments on commit 2a0b660

Please sign in to comment.