summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-02-08 10:41:01 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-02-08 10:41:01 +0100
commit6b414014de24dd9671e491c765c7c5535cd05d40 (patch)
tree6653b3f2f89603678fa7fabbdcdbbd55c7427c39 /CMakeLists.txt
parent2a383d2e9d13f5e652cb4e00ccb61558303d6f84 (diff)
downloaduca-6b414014de24dd9671e491c765c7c5535cd05d40.tar.gz
uca-6b414014de24dd9671e491c765c7c5535cd05d40.tar.bz2
uca-6b414014de24dd9671e491c765c7c5535cd05d40.tar.xz
uca-6b414014de24dd9671e491c765c7c5535cd05d40.zip
Raise minimum GLib version to 2.38
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5b838fc..a04ce41 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,10 +69,13 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/package.sh.in
#{{{ Common dependencies
find_package(PkgConfig)
find_program(GLIB2_MKENUMS glib-mkenums REQUIRED)
-pkg_check_modules(GLIB2 glib-2.0>=2.28 REQUIRED)
-pkg_check_modules(GOBJECT2 gobject-2.0>=2.28 REQUIRED)
-pkg_check_modules(GMODULE2 gmodule-2.0>=2.28 REQUIRED)
-pkg_check_modules(GIO2 gio-2.0>=2.28 REQUIRED)
+pkg_check_modules(GLIB2 glib-2.0>=2.38 REQUIRED)
+pkg_check_modules(GOBJECT2 gobject-2.0>=2.38 REQUIRED)
+pkg_check_modules(GMODULE2 gmodule-2.0>=2.38 REQUIRED)
+pkg_check_modules(GIO2 gio-2.0>=2.38 REQUIRED)
+
+set(GLIB_VERSION_MIN_REQUIRED "GLIB_VERSION_2_38")
+set(GLIB_VERSION_MAX_ALLOWED "GLIB_VERSION_2_38")
link_directories(${GLIB2_LIBRARY_DIRS})
#}}}