From 5d8cd0ebdfef33c6a3a8331b651c05df43b4a323 Mon Sep 17 00:00:00 2001 From: k3tamina Date: Sun, 29 May 2022 12:11:02 +0200 Subject: [PATCH] Defined SDL_MAIN_HANDLED to solve link error --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5411e6e..bb6aca1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) \ No newline at end of file