From dc36a88968f030b6003298d10ca2cc5581afd77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sun, 24 Oct 2021 16:30:44 +0200 Subject: [PATCH] Improve GLib deprecation disabling Added a match against the version stated in the README. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cd1cbbb..657f7c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,7 +173,7 @@ set (project_headers ${project_common_headers}) # Build the main executable and link it -add_definitions (-DGLIB_DISABLE_DEPRECATION_WARNINGS) +add_definitions (-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38) if (NOT WIN32) add_executable (${PROJECT_NAME} ${project_sources} ${project_headers} ${project_common_sources})