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. --- cmake/host.cmake | 5 ----- 1 file changed, 5 deletions(-) (limited to 'cmake/host.cmake') diff --git a/cmake/host.cmake b/cmake/host.cmake index bb0827d..6fa47b9 100644 --- a/cmake/host.cmake +++ b/cmake/host.cmake @@ -1,8 +1,3 @@ -find_package(SDL 1.2 REQUIRED) -find_package(SDL_mixer 1.2 REQUIRED) -find_package(SDL_gfx 2.0 REQUIRED) -set(SDL1_2_BUILD 1) - if(CMAKE_BUILD_TYPE STREQUAL "Debug") set(cflags ${cflags} -Og) else() -- cgit v1.2.3