# HG changeset patch # User Patric Stout # Date 2021-02-07 11:54:02 # Node ID 1dec7661a7c29505843c03fae28ba1d76fdf9875 # Parent 22025f065dbb4fb600d00c6251edcbd8bcb4627d 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. diff --git a/cmake/FindAllegro.cmake b/cmake/FindAllegro.cmake --- a/cmake/FindAllegro.cmake +++ b/cmake/FindAllegro.cmake @@ -31,7 +31,7 @@ The following cache variables may also b #]=======================================================================] 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