diff --git a/modules/highgui/cmake/detect_gtk.cmake b/modules/highgui/cmake/detect_gtk.cmake index 7c5939ed97..0ffa473d6a 100644 --- a/modules/highgui/cmake/detect_gtk.cmake +++ b/modules/highgui/cmake/detect_gtk.cmake @@ -41,3 +41,4 @@ if(WITH_GTK AND NOT HAVE_QT) endif() set(HAVE_GTK ${HAVE_GTK} PARENT_SCOPE) +set(HAVE_GTK3 ${HAVE_GTK3} PARENT_SCOPE)