aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindGDK3.cmake
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2019-12-17 23:52:05 +0100
committerMarvin W <git@larma.de>2019-12-18 00:51:49 +0100
commitbd45fdf1e16e7d4ff49e1472ee30f269867f531e (patch)
tree4e9766553fa0dbb48eebe77ab9a4f0a9ad8d2627 /cmake/FindGDK3.cmake
parenta4a795af333d6bcf378e11df456a858af2fa4603 (diff)
downloaddino-bd45fdf1e16e7d4ff49e1472ee30f269867f531e.tar.gz
dino-bd45fdf1e16e7d4ff49e1472ee30f269867f531e.zip
Add version and adjust some cmake
Diffstat (limited to 'cmake/FindGDK3.cmake')
-rw-r--r--cmake/FindGDK3.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/FindGDK3.cmake b/cmake/FindGDK3.cmake
index f90868e1..fcbfa13c 100644
--- a/cmake/FindGDK3.cmake
+++ b/cmake/FindGDK3.cmake
@@ -25,9 +25,12 @@ if(GDK3_FOUND AND NOT GDK3_VERSION)
endif()
endif()
-if(GDK3_FOUND)
+if (GDK3_FOUND)
find_file(GDK3_WITH_X11 "gdk/gdkx.h" HINTS ${GDK3_INCLUDE_DIRS})
-endif()
+ if (GDK3_WITH_X11)
+ set(GDK3_WITH_X11 yes CACHE INTERNAL "Does GDK3 support X11")
+ endif (GDK3_WITH_X11)
+endif ()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GDK3