We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9c6310 commit 9701b72Copy full SHA for 9701b72
mk/cmake/SuperTux/ProvideSDL2.cmake
@@ -33,8 +33,12 @@ else()
33
else()
34
# 64-bit
35
include(FindPkgConfig)
36
- pkg_search_module(SDL2 REQUIRED sdl2>=2.0.1)
37
- pkg_search_module(SDL2IMAGE REQUIRED SDL2_image>=2.0.0)
+ if(NOT PKG_CONFIG_FOUND)
+ message(WARNING "Trying to find libraries using pkg_search_module, but pkg-config was not found. Install pkg-config to continue.")
38
+ else()
39
+ pkg_search_module(SDL2 REQUIRED sdl2>=2.0.1)
40
+ pkg_search_module(SDL2IMAGE REQUIRED SDL2_image>=2.0.0)
41
+ endif()
42
endif()
43
44
0 commit comments