From 5829ef82c45ce2ea7ed957917346a23acbd09e86 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/keyboard/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/keyboard/CMakeLists.txt') diff --git a/src/keyboard/CMakeLists.txt b/src/keyboard/CMakeLists.txt index 3ef79aa..5fa8892 100644 --- a/src/keyboard/CMakeLists.txt +++ b/src/keyboard/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/keyboard.c") - set(deps ${deps} SDL) + set(privdeps ${privdeps} SDL::SDL) endif() add_library(keyboard ${src}) -- cgit v1.2.3