diff options
author | Thomas White <taw@physics.org> | 2020-09-18 10:43:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-18 10:43:25 +0200 |
commit | ba3dee848c3685c52ff3151514877a2cca3efd86 (patch) | |
tree | c6f126bc7092cbbbd979bbc4f01497344eaf75c0 /CMakeLists.txt | |
parent | 0ca2b9e28d09387e51fa6f6b685a675fe1089ea7 (diff) |
CMake: GTK2 no longer supported
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ad95a7f2..5c5ac445 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,38 +59,20 @@ else() endif() pkg_search_module(GTK gtk+-3.0) -if (NOT GTK_FOUND) - - # No GTK3. Try GTK2? - pkg_search_module(GTK gtk+-2.0) - if (GTK_FOUND) - message(STATUS "Using GTK 2") - pkg_search_module(GDK gdk-2.0) - endif () - -else () - - message(STATUS "Using GTK 3") +if (GTK_FOUND) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations") - pkg_search_module(GDK gdk-3.0) - + link_directories(${GTK_LIBRARY_DIRS}) endif () # If no version of GTK was found, try for GDK if (NOT GTK_FOUND) - message(STATUS "GTK not found. cell_explorer will not be compiled") + message(STATUS "GTK3 not found. GUI parts will not be compiled") message(STATUS "Looking separately for GDK") pkg_search_module(GDK gdk-3.0) if (NOT GDK_FOUND) - pkg_search_module(GDK gdk-2.0) - if (GDK_FOUND) - message(STATUS "Using GDK 2") - endif() - else () - message(STATUS "Using GDK 3") + message(STATUS "GDK not found.") endif() endif() -link_directories(${GTK_LIBRARY_DIRS}) pkg_search_module(CAIRO cairo) pkg_search_module(GDKPIXBUF gdk-pixbuf-2.0) |