From bde82da22bd3d0d53c1596a6933706a9a56b4947 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 22 Oct 2021 09:56:27 +0200 Subject: CMakeLists.txt: Don't build GTK2 flavour against GTK3. --- CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b92a3c..cfd3bfc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,10 +40,21 @@ endif() set(DEPS glib-2.0>=2.37 - gtk+-3.0>=3.24 gmodule-2.0 gio-unix-2.0 ) +if (FLAVOUR_GTK3) + set(DEPS + ${DEPS} + gtk+-3.0>=3.24 + ) +endif() +if (FLAVOUR_GTK2) + set(DEPS + ${DEPS} + gtk+-2.0>=2.18 + ) +endif() if (FLAVOUR_GTK3 AND ENABLE_IDO) set(DEPS -- cgit v1.2.3