summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-04 20:59:52 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-05 15:04:28 +0100
commitffa8ea13fbf50ad59d9fc4cea71b9aec4aca8bac (patch)
treecb9a383441d1f5842c6ab6333f62c6eaffd59482 /CMake
parent81413b5e4cf24ece22c57abf09bf44816ec3bf3a (diff)
downloadmana-ffa8ea13fbf50ad59d9fc4cea71b9aec4aca8bac.tar.gz
mana-ffa8ea13fbf50ad59d9fc4cea71b9aec4aca8bac.tar.bz2
mana-ffa8ea13fbf50ad59d9fc4cea71b9aec4aca8bac.tar.xz
mana-ffa8ea13fbf50ad59d9fc4cea71b9aec4aca8bac.zip
Require PhysFS 3.0
It seems the implementation of PhysicsFS RWops shipped requires a somewhat up-to-date PhysFS (beyond just a missing PHYSFS_DECL macro). Also simplified CMake files somewhat, enabling new behavior for some policies that were triggering warnings. And removed the no longer used FindSDL_gfx.cmake module (SDL_gfx is found using pkg-config since 2c51c98625b225cecfb9628c30d62d4e30f7e3e1).
Diffstat (limited to 'CMake')
-rw-r--r--CMake/Modules/FindSDL_gfx.cmake39
1 files changed, 0 insertions, 39 deletions
diff --git a/CMake/Modules/FindSDL_gfx.cmake b/CMake/Modules/FindSDL_gfx.cmake
deleted file mode 100644
index 74c1c6c7..00000000
--- a/CMake/Modules/FindSDL_gfx.cmake
+++ /dev/null
@@ -1,39 +0,0 @@
-# - Try to find SDL_gfx
-# Once done this will define
-#
-# SDLGFX_FOUND - system has SDL_gfx
-# SDLGFX_INCLUDE_DIR - the SDL_gfx include directory
-
-# Be quiet if SDL_gfx was already found
-IF (SDL_gfx_INCLUDE_DIR AND SDL_gfx_LIBRARY)
- SET(SDL_gfx_QUIET TRUE)
-ENDIF (SDL_gfx_INCLUDE_DIR AND SDL_gfx_LIBRARY)
-
-
-FIND_PATH(SDL_gfx_INCLUDE_DIR
- NAMES SDL_rotozoom.h
- PATH_SUFFIXES SDL
- )
-
-FIND_LIBRARY(SDL_gfx_LIBRARY
- NAMES SDL_gfx
- PATHS /usr/lib /usr/local/lib
- )
-
-MARK_AS_ADVANCED(SDL_gfx_INCLUDE_DIR SDL_gfx_LIBRARY)
-
-
-IF (SDL_gfx_INCLUDE_DIR AND SDL_gfx_LIBRARY)
- SET(SDLGFX_FOUND TRUE)
- SET(SDLGFX_INCLUDE_DIR ${SDL_gfx_INCLUDE_DIR})
- SET(SDLGFX_LIBRARIES ${SDL_gfx_LIBRARY})
-
- IF (NOT SDL_gfx_FIND_QUIETLY AND NOT SDL_gfx_QUIET)
- MESSAGE(STATUS "Found SDL_gfx: ${SDL_gfx_LIBRARY}")
- ENDIF (NOT SDL_gfx_FIND_QUIETLY AND NOT SDL_gfx_QUIET)
-ENDIF (SDL_gfx_INCLUDE_DIR AND SDL_gfx_LIBRARY)
-
-# Bail out if SDL_gfx is not found but required
-IF (NOT SDLGFX_FOUND AND SDL_gfx_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could NOT find SDL_gfx library ${SDLGFX_INCLUDE_DIR}")
-ENDIF (NOT SDLGFX_FOUND AND SDL_gfx_FIND_REQUIRED)