summaryrefslogtreecommitdiffstats
path: root/cmake/FindGTK3.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindGTK3.cmake')
-rw-r--r--cmake/FindGTK3.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/FindGTK3.cmake b/cmake/FindGTK3.cmake
index f4476c167b..9423eb4b9b 100644
--- a/cmake/FindGTK3.cmake
+++ b/cmake/FindGTK3.cmake
@@ -1,3 +1,7 @@
include(FindPkgConfig)
pkg_check_modules(GTK3 "gtk+-3.0 >= 3.6" IMPORTED_TARGET)
+
+if (NOT TARGET PkgConfig::GTK3)
+ set(GTK3_FOUND 0)
+endif()