Skip to content

Commit

Permalink
fix android build
Browse files Browse the repository at this point in the history
  • Loading branch information
irov committed Aug 26, 2023
1 parent b22763c commit 2055fca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/Dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,9 @@ if(MENGINE_DEPENDENCE_SDL)

ADD_SUBDIRECTORY(${THIRDPARTY_DIR}/SDL ${THIRDPARTY_CONFIG_DIR}/SDL)

target_compile_definitions(SDL2-static PUBLIC -DSDL_MAIN_HANDLED)
if(MENGINE_TARGET_IOS OR MENGINE_TARGET_IOS_SIMULATOR)
target_compile_definitions(SDL2-static PUBLIC -DSDL_MAIN_HANDLED)
endif()

set(SDL2_DIR "${THIRDPARTY_CONFIG_DIR}/SDL" CACHE STRING "SDL2_DIR" FORCE)

Expand Down

0 comments on commit 2055fca

Please sign in to comment.