summaryrefslogtreecommitdiff
path: root/user/supertux/cmake32.patch
blob: bc31de62c8fd550f739bac6596c66d11ed12185d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
There is no reason to special-case finding SDL2 for 32-bit, and it doesn't
work effectively anyway.

--- SuperTux-v0.6.3-Source/CMakeLists.txt.old	2021-12-22 23:01:57.000000000 +0000
+++ SuperTux-v0.6.3-Source/CMakeLists.txt	2022-12-04 00:59:27.057071029 +0000
@@ -232,16 +232,6 @@
       find_library(SDL2_LIBRARIES SDL2)
       find_library(SDL2IMAGE_LIBRARIES SDL2_image)
       message(STATUS "SDL2_INCLUDE_DIR is ${SDL2_INCLUDE_DIRS}")
-    elseif (CMAKE_SIZEOF_VOID_P EQUAL 4)
-      # 32-bit
-      find_library(SDL2_LIBRARIES SDL2)
-      find_library(SDL2IMAGE_LIBRARIES SDL2_image)
-      find_path(SDL2_INCLUDE_DIRS SDL2/SDL.h)
-      find_path(SDL2IMAGE_INCLUDE_DIRS SDL2/SDL_image.h)
-      set(SDL2_INCLUDE_DIRS ${SDL2_INCLUDE_DIRS}/SDL2)
-      set(SDL2IMAGE_INCLUDE_DIRS ${SDL2IMAGE_INCLUDE_DIRS}/SDL2)
-      message(STATUS "SDL LIBS: ${SDL2_LIBRARIES}")
-      message(STATUS "SDL INCL: ${SDL2_INCLUDE_DIRS}")
     else()
       # 64-bit
       include(FindPkgConfig)