aboutsummaryrefslogtreecommitdiff
path: root/src/mouse
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-07-23 04:18:22 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-07-23 04:23:05 +0200
commit5829ef82c45ce2ea7ed957917346a23acbd09e86 (patch)
treeee7b21b52359c5320a25675046623de5173fc56a /src/mouse
parent37ee2c11f34c55773c2afff5f8833d4bad7e4e8b (diff)
downloadrts-5829ef82c45ce2ea7ed957917346a23acbd09e86.tar.gz
Use find_package for SDL libraries
CMake already distributes FindSDL*.cmake files for SDL and SDL_mixer, which support custom prefixes via environment variables, removing the need for ad-hoc logic in Win9x builds. Also, according to FindSDL.cmake, #include <SDL.h> is the preferred way for portability reasons, instead of #include <SDL/SDL.h>, which is the option that has been used so far.
Diffstat (limited to 'src/mouse')
-rw-r--r--src/mouse/CMakeLists.txt2
-rw-r--r--src/mouse/sdl-1.2/src/mouse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mouse/CMakeLists.txt b/src/mouse/CMakeLists.txt
index 7cab57c..57525ec 100644
--- a/src/mouse/CMakeLists.txt
+++ b/src/mouse/CMakeLists.txt
@@ -6,7 +6,7 @@ if(PS1_BUILD)
set(privdeps ${privdeps} PSXSDK::PSXSDK)
elseif(SDL1_2_BUILD)
set(src ${src} "sdl-1.2/src/mouse.c")
- set(deps ${deps} SDL)
+ set(privdeps ${privdeps} SDL::SDL)
endif()
add_library(mouse ${src})
diff --git a/src/mouse/sdl-1.2/src/mouse.c b/src/mouse/sdl-1.2/src/mouse.c
index 4b95ae2..56b22f3 100644
--- a/src/mouse/sdl-1.2/src/mouse.c
+++ b/src/mouse/sdl-1.2/src/mouse.c
@@ -1,5 +1,5 @@
#include <mouse.h>
-#include <SDL/SDL.h>
+#include <SDL.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdio.h>