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.
This commit is contained in:
Patric Stout 2021-02-07 12:54:02 +01:00 committed by GitHub
parent 2c9084d48c
commit 9322b40df1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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