diff options
Diffstat (limited to 'user/supertux/cmake32.patch')
-rw-r--r-- | user/supertux/cmake32.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/user/supertux/cmake32.patch b/user/supertux/cmake32.patch new file mode 100644 index 000000000..bc31de62c --- /dev/null +++ b/user/supertux/cmake32.patch @@ -0,0 +1,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) |