From 9322b40df1bf0987a440404fbb2c72dfb4410ba3 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 7 Feb 2021 12:54:02 +0100 Subject: [PATCH] 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. --- cmake/FindAllegro.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindAllegro.cmake b/cmake/FindAllegro.cmake index 3c90d2c4e7..5d873dd3e1 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