From: RĂ©mi Verschelde Date: Fri, 18 Nov 2016 23:36:53 +0000 (+0100) Subject: CMake: Use upstream SDL2 find_package X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=8c5a754da6e78011ecbf6a8d1ab4469070cc72b8;p=lugaru.git CMake: Use upstream SDL2 find_package Fixes linking on MinGW. --- 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)