From 9adddece2cb6fd0a833e49f01d918b379c5c7b7b Mon Sep 17 00:00:00 2001 From: Hombre57 Date: Sun, 15 Oct 2017 22:15:10 +0200 Subject: [PATCH] Require Gtk >= 3.22.24 for Windows, see #4141 --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 01865fcf7..490cfa7ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -266,10 +266,15 @@ endif() # Check for libraries: find_package(PkgConfig) +if(WIN32) +pkg_check_modules (GTK REQUIRED gtk+-3.0>=3.22.24) +pkg_check_modules (GTKMM REQUIRED gtkmm-3.0>=3.22) +else() pkg_check_modules (GTK REQUIRED gtk+-3.0>=3.16) +pkg_check_modules (GTKMM REQUIRED gtkmm-3.0>=3.16) +endif() pkg_check_modules (GLIB2 REQUIRED glib-2.0>=2.44) pkg_check_modules (GLIBMM REQUIRED glibmm-2.4>=2.44) -pkg_check_modules (GTKMM REQUIRED gtkmm-3.0>=3.16) pkg_check_modules (CAIROMM REQUIRED cairomm-1.0) pkg_check_modules (GIO REQUIRED gio-2.0>=2.44) pkg_check_modules (GIOMM REQUIRED giomm-2.4>=2.44)