]> git.jsancho.org Git - lugaru.git/commitdiff
CMake: Use upstream SDL2 find_package
authorRémi Verschelde <rverschelde@gmail.com>
Fri, 18 Nov 2016 23:36:53 +0000 (00:36 +0100)
committerRémi Verschelde <rverschelde@gmail.com>
Fri, 18 Nov 2016 23:36:53 +0000 (00:36 +0100)
Fixes linking on MinGW.

CMakeLists.txt

index 44ea757580021415f83f16c2ed3c1d71ce09a0a9..822300db2c643b49408a60b363e230b70d9c0edb 100644 (file)
@@ -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)