diff --git a/meson.build b/meson.build index 0b32f4d0..61086491 100644 --- a/meson.build +++ b/meson.build @@ -70,7 +70,13 @@ with_docs = get_option('with_docs') gtk_doc_referred_paths = [] if with_docs gtkdoc = dependency('gtk-doc') - glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') + + if glib.version().version_compare('<2.79.0') + glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') + else + glib_docpath = join_paths(glib_prefix, 'share', 'doc', 'glib-2.0') + warning('glib >= 2.79.0 documention might not be properly referred from libmodulemd documentation.') + endif foreach referred_module : [ 'glib', 'gobject' ] doc_module_path = join_paths(glib_docpath, referred_module)