Skip to content

Commit

Permalink
Fix linking of SDL for MiNT
Browse files Browse the repository at this point in the history
Brain-damaged cmake's find_package macro was always linking to
lib/libSDL.a regardless of cpu
  • Loading branch information
th-otto committed Mar 16, 2024
1 parent 83c8956 commit 1886980
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,14 @@ if(NETWORKING)
endif()

if(SDL1)
if(${CMAKE_SYSTEM_NAME} MATCHES "m68k-atari-mint")
list(APPEND VANILLA_LIBS "-lSDL")
include_directories(${CMAKE_INCLUDE_PATH}/SDL)
else()
find_package(SDL REQUIRED)
list(APPEND VANILLA_LIBS ${SDL_LIBRARY})
include_directories(${SDL_INCLUDE_DIR})
endif()

# winuser.h defines VK_ macros but it can be prevented
if(WIN32)
Expand Down

0 comments on commit 1886980

Please sign in to comment.