mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-19 07:50:49 +00:00
cmake: correctly query for glib version
This commit is contained in:
parent
851a26fff1
commit
551d6495df
1 changed files with 2 additions and 2 deletions
|
@ -457,9 +457,9 @@ else(NOT enable-pkgconfig)
|
||||||
# Mandatory libraries: glib and gthread
|
# Mandatory libraries: glib and gthread
|
||||||
pkg_check_modules ( GLIB REQUIRED glib-2.0>=2.6.5 gthread-2.0>=2.6.5 )
|
pkg_check_modules ( GLIB REQUIRED glib-2.0>=2.6.5 gthread-2.0>=2.6.5 )
|
||||||
|
|
||||||
if ( GLIB_VERSION VERSION_LESS "2.26" )
|
if ( GLIB_glib-2.0_VERSION AND GLIB_glib-2.0_VERSION VERSION_LESS "2.26.0" )
|
||||||
message ( WARNING "Your version of glib is very old. This may cause problems with fluidsynth's sample cache on Windows. Consider updating to glib 2.26 or newer!" )
|
message ( WARNING "Your version of glib is very old. This may cause problems with fluidsynth's sample cache on Windows. Consider updating to glib 2.26 or newer!" )
|
||||||
endif ( GLIB_VERSION VERSION_LESS "2.26" )
|
endif ( GLIB_glib-2.0_VERSION AND GLIB_glib-2.0_VERSION VERSION_LESS "2.26.0" )
|
||||||
|
|
||||||
include ( UnsetPkgConfig )
|
include ( UnsetPkgConfig )
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue