From 8c5a754da6e78011ecbf6a8d1ab4469070cc72b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 19 Nov 2016 00:36:53 +0100 Subject: [PATCH] CMake: Use upstream SDL2 find_package Fixes linking on MinGW. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 44ea757..822300d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,7 +233,7 @@ if (NOT OPENAL_FOUND OR LUGARU_FORCE_INTERNAL_OPENAL) endif (NOT LUGARU_HAS_INTERNAL_OPENAL) endif (NOT OPENAL_FOUND OR LUGARU_FORCE_INTERNAL_OPENAL) -PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2) +find_package(sdl2 REQUIRED) option (LUGARU_FORCE_INTERNAL_PNG "Force internal libPNG, even if there's a system version" False) if (NOT LUGARU_FORCE_INTERNAL_PNG) -- 2.39.5