From e8dd951c6c2bc3f3496eec26192b9b81c062ca1a Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 23 Jul 2022 04:18:22 +0200 Subject: 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 is the preferred way for portability reasons, instead of #include , which is the option that has been used so far. --- src/mouse/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mouse/CMakeLists.txt') 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}) -- cgit v1.2.3