aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindGDK3.cmake
diff options
context:
space:
mode:
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