For compatibility with Debian systems.

For some reason they specify the minor version too, which is retarded.
This commit is contained in:
Nicolás Ortega Froysa 2018-04-04 11:51:20 +02:00
parent 29219bbc2c
commit a93e9a7b73
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -34,9 +34,9 @@ set(CMAKE_C_FLAGS_RELWITHDEBINFO "-g -O3 -ffast-math")
set(CMAKE_C_FLAGS_MINSIZEREL "-Os") set(CMAKE_C_FLAGS_MINSIZEREL "-Os")
find_package(PkgConfig REQUIRED) find_package(PkgConfig REQUIRED)
pkg_check_modules(ALLEG5 REQUIRED allegro-5) pkg_check_modules(ALLEG5 REQUIRED allegro-5 allegro-5.0)
pkg_check_modules(ALLEG5-PRIM REQUIRED allegro_primitives-5) pkg_check_modules(ALLEG5-PRIM REQUIRED allegro_primitives-5 allegro_primitives-5.0)
pkg_check_modules(ALLEG5-FONT REQUIRED allegro_font-5) pkg_check_modules(ALLEG5-FONT REQUIRED allegro_font-5 allegro_font-5.0)
include_directories( include_directories(
SYSTEM ${ALLEG5_INCLUDE_DIRS}) SYSTEM ${ALLEG5_INCLUDE_DIRS})