mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
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:
parent
2c9084d48c
commit
9322b40df1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user