From 90e849198fbac0136ca9bb9149e53f25265eeab5 Mon Sep 17 00:00:00 2001 From: Frédéric Simonis Date: Sun, 7 Jun 2020 12:06:40 +0200 Subject: Fix: [CMake] Error when SDL2 provides SDL2Config --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 77ae77cef..7b9788f2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,7 +157,7 @@ link_package(XDG_basedir) if (NOT OPTION_DEDICATED) link_package(Fluidsynth) link_package(SDL) - link_package(SDL2) + link_package(SDL2 TARGET SDL2::SDL2) link_package(Allegro) link_package(FREETYPE TARGET Freetype::Freetype) link_package(Fontconfig TARGET Fontconfig::Fontconfig) -- cgit v1.2.3-54-g00ecf