From e788dd352c9ef978de34578f1afca07c48375e35 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sat, 17 Apr 2021 21:48:53 -0500 Subject: [PATCH] cmake: Fix FindGTK3 not creating targets properly --- cmake/FindGTK3.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/FindGTK3.cmake b/cmake/FindGTK3.cmake index f39170319..2287951ec 100644 --- a/cmake/FindGTK3.cmake +++ b/cmake/FindGTK3.cmake @@ -527,6 +527,7 @@ function(_GTK3_ADD_TARGET _var) # Do not create the target if dependencies are missing foreach(_dep ${_${_var}_GTK3_DEPENDS}) if(NOT TARGET GTK3::${_dep}) + message("Not creating GTK3::${_basename}, missing GTK3::${_dep}") return() endif() endforeach() @@ -735,7 +736,7 @@ foreach(_GTK3_component ${GTK3_FIND_COMPONENTS}) else() _GTK3_FIND_LIBRARY (GDK gdk-win32 false true) endif() - _GTK3_ADD_TARGET (GDK GTK3_DEPENDS pangocairo pango cairo-gobject cairo gdk_pixbuf gobject glib) + _GTK3_ADD_TARGET (GDK GTK3_DEPENDS pangocairo pango cairo_gobject cairo gdk_pixbuf gobject glib) _GTK3_FIND_INCLUDE_DIR(GTK gtk/gtk.h) if(UNIX) @@ -748,7 +749,7 @@ foreach(_GTK3_component ${GTK3_FIND_COMPONENTS}) else() _GTK3_FIND_LIBRARY (GTK gtk-win32 false true) endif() - _GTK3_ADD_TARGET (GTK GTK3_DEPENDS gdk atk pangocairo pango cairo-gobject cairo gdk_pixbuf gio gobject glib) + _GTK3_ADD_TARGET (GTK GTK3_DEPENDS gdk atk pangocairo pango cairo_gobject cairo gdk_pixbuf gio gobject glib) elseif(_GTK3_component STREQUAL "gtkmm")