From 924617e1ced9fafd7cf723e104545d4852674da9 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sun, 24 Oct 2021 16:44:36 +0200 Subject: Silence some GLib deprecation warnings Using the GLib version from the GTK+ 3.8.2 bundle. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0852a8b..5f41312 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,6 +175,8 @@ if (WIN32) endif (WIN32) # Generate a configure file +add_definitions (-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36) +add_definitions (-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36) configure_file (${PROJECT_SOURCE_DIR}/config.h.in ${PROJECT_BINARY_DIR}/config.h) include_directories (${PROJECT_BINARY_DIR}) -- cgit v1.2.3-70-g09d2