Skip to content

Commit

Permalink
Swap SDLmain lib for SDL_main.h
Browse files Browse the repository at this point in the history
  • Loading branch information
LiquidityC committed Nov 2, 2024
1 parent ec83b7e commit 2019fd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <stdbool.h>
#include <SDL3/SDL.h>
#include <SDL3_image/SDL_image.h>
#include <SDL3/SDL_main.h>
#include <physfs.h>
#include <string.h>
#include "linkedlist.h"
Expand Down

0 comments on commit 2019fd6

Please sign in to comment.