From 006beb0704621c42a14721b173acfc2d2040d6b2 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 10 Feb 2022 14:28:35 -0800 Subject: [PATCH] SDL: Actually use FindSDL2 by default --- src/platform/sdl/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/sdl/CMakeLists.txt b/src/platform/sdl/CMakeLists.txt index 91ac72590..047f26333 100644 --- a/src/platform/sdl/CMakeLists.txt +++ b/src/platform/sdl/CMakeLists.txt @@ -1,10 +1,10 @@ set(SDL_VERSION "2" CACHE STRING "Version of SDL to use (1.2 or 2)") if (SDL_VERSION EQUAL "2") - include(FindPkgConfig) - pkg_search_module(SDL2 sdl2) + find_package(SDL2) if (NOT SDL2_FOUND) - find_package(SDL2) + include(FindPkgConfig) + pkg_search_module(SDL2 sdl2) endif() if (SDL2_FOUND)