From 2019fd61f881dd7418d1a35ba201d32b73e9bad4 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Sat, 2 Nov 2024 14:21:16 +0100 Subject: [PATCH] Swap SDLmain lib for SDL_main.h --- CMakeLists.txt | 7 ------- src/main.c | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 252bc4e..5c04426 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,7 +115,6 @@ set(SDL_TEST OFF) add_subdirectory(lib/SDL) set(SDL_INCLUDE_DIR lib/SDL/include) set(SDL_LIBRARY SDL3-static) -set(SDL_MAIN_LIBRARY SDLmain) # Include SDL_image/mixer/ttf set(BUILD_SHARED_LIBS OFF) @@ -299,12 +298,6 @@ target_link_libraries(breakhack checksum ) -if (MSVC OR MINGW) - target_link_libraries(breakhack - ${SDL_MAIN_LIBRARY} - ) -endif () - if (STEAM) target_link_libraries(breakhack ${STEAMWORKS_LIBRARY} diff --git a/src/main.c b/src/main.c index cbf7327..efd5b2d 100644 --- a/src/main.c +++ b/src/main.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include "linkedlist.h"