--- a/hedgewars/CMakeLists.txt Thu Aug 11 23:05:14 2016 +0300
+++ b/hedgewars/CMakeLists.txt Sun Dec 17 00:09:24 2017 +0100
@@ -1,10 +1,10 @@
enable_language(Pascal)
find_package(SDL2 REQUIRED)
-find_package(SDL2_image REQUIRED)
-find_package(SDL2_net REQUIRED)
-find_package(SDL2_ttf REQUIRED)
-find_package(SDL2_mixer REQUIRED)
+find_package(SDL2_image 2 REQUIRED)
+find_package(SDL2_net 2 REQUIRED)
+find_package(SDL2_ttf 2 REQUIRED)
+find_package(SDL2_mixer 2 REQUIRED)
include(CheckLibraryExists)
include(${CMAKE_MODULE_PATH}/utils.cmake)