aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Beltrame <[email protected]>2017-02-13 17:31:28 +0100
committerLuca Beltrame <[email protected]>2017-02-13 17:31:28 +0100
commitd219a38b1d17aa13f7912db79f8f8e48f74c33ca (patch)
tree1e59d9ac6056ec2da3ad3bf67240457fa086d600
parent481fdb043e0e8dc54cd02db664abbae9d0500069 (diff)
Revert "Revert "Figure out the GTK version instead of using a hardcoded one""
Good for master. This reverts commit e638663b570fe9a436c49ca965116ada8a15b04e.
-rw-r--r--CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 78869f6..99575dc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,10 +7,14 @@ cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 0.0.9 REQUIRED NO_MODULE)
include(FeatureSummary)
-set(WITH_GTK3_VERSION 3.18 CACHE STRING
- "Use the theme for the specified GTK+3 version (default: 3.18)")
-
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} "${CMAKE_SOURCE_DIR}/cmake")
+find_package(GTKEngine)
+
+find_package(PkgConfig)
+pkg_check_modules(PKG_GTK REQUIRED gtk+-3.0)
+
+set(WITH_GTK3_VERSION ${PKG_GTK_VERSION})
+
include(KDEInstallDirs)
# Exclude these patterns when installing directories as they have no use
@@ -25,6 +29,4 @@ add_subdirectory(Breeze-dark-gtk)
add_subdirectory(Breeze-gtk)
add_subdirectory(kconf_update)
-find_package(GTKEngine)
-
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)