Defined SDL_MAIN_HANDLED to solve link error

This commit is contained in:
k3tamina 2022-05-29 12:11:02 +02:00
parent 3c666b480c
commit 5d8cd0ebdf
1 changed files with 1 additions and 0 deletions

View File

@ -261,3 +261,4 @@ target_include_directories(${EXECUTABLE_NAME} PRIVATE ${ZLIB_INCLUDE_DIRS})
add_subdirectory("third_party/sdl2")
target_link_libraries(${EXECUTABLE_NAME} ${SDL2_LIBRARIES})
target_include_directories(${EXECUTABLE_NAME} PRIVATE ${SDL2_INCLUDE_DIRS})
add_definitions(-DSDL_MAIN_HANDLED)