summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-02-07 12:54:02 +0100
committerGitHub <noreply@github.com>2021-02-07 12:54:02 +0100
commit9322b40df1bf0987a440404fbb2c72dfb4410ba3 (patch)
tree1edf260bd2271c8ac47648f006ac6b42994bf27f /cmake
parent2c9084d48cf1a3ad3c5f8d3bcad83c396e8d29fd (diff)
downloadopenttd-9322b40df1bf0987a440404fbb2c72dfb4410ba3.tar.xz
Fix: [CMake] our allegro drivers use v4, so skip v5 if found (#8653)
On some distros allegro v5 is called allegro-5, but on some others it is not. So this should fix for all distros that allegro v5 is not being picked up, and only v4 is.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindAllegro.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindAllegro.cmake b/cmake/FindAllegro.cmake
index 3c90d2c4e..5d873dd3e 100644
--- a/cmake/FindAllegro.cmake
+++ b/cmake/FindAllegro.cmake
@@ -31,7 +31,7 @@ The following cache variables may also be set:
#]=======================================================================]
find_package(PkgConfig QUIET)
-pkg_check_modules(PC_Allegro QUIET allegro)
+pkg_check_modules(PC_Allegro QUIET allegro<5)
find_path(Allegro_INCLUDE_DIR
NAMES allegro.h