summaryrefslogtreecommitdiffstats
path: root/Modules/FindGTK2.cmake
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2013-11-24 13:52:39 (GMT)
committerDaniele E. Domenichelli <daniele.domenichelli@iit.it>2013-11-24 13:53:47 (GMT)
commit0e9bf6a257d2a2026bcd1d8f52f5a3d42ff9fabd (patch)
treeda384e0f10c5f1e612bb0c8a8d1161999373d98e /Modules/FindGTK2.cmake
parent9e952fbf18bddec90b874d7b0139a6ca3b78f0c9 (diff)
downloadCMake-0e9bf6a257d2a2026bcd1d8f52f5a3d42ff9fabd.zip
CMake-0e9bf6a257d2a2026bcd1d8f52f5a3d42ff9fabd.tar.gz
CMake-0e9bf6a257d2a2026bcd1d8f52f5a3d42ff9fabd.tar.bz2
FindGTK2: Add support for Quartz backend on MAC
Fix issue #14593
Diffstat (limited to 'Modules/FindGTK2.cmake')
-rw-r--r--Modules/FindGTK2.cmake14
1 files changed, 12 insertions, 2 deletions
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 25c482e..bc66337 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -689,7 +689,12 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_FIND_INCLUDE_DIR(GDK gdk/gdk.h)
_GTK2_FIND_INCLUDE_DIR(GDKCONFIG gdkconfig.h)
if(UNIX)
- _GTK2_FIND_LIBRARY (GDK gdk-x11 false true)
+ if(APPLE)
+ _GTK2_FIND_LIBRARY (GDK gdk-quartz false true)
+ endif()
+ if(NOT GTK2_GDK_FOUND)
+ _GTK2_FIND_LIBRARY (GDK gdk-x11 false true)
+ endif()
else()
_GTK2_FIND_LIBRARY (GDK gdk-win32 false true)
endif()
@@ -698,7 +703,12 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_FIND_INCLUDE_DIR(GTK gtk/gtk.h)
if(UNIX)
- _GTK2_FIND_LIBRARY (GTK gtk-x11 false true)
+ if(APPLE)
+ _GTK2_FIND_LIBRARY (GTK gtk-quartz false true)
+ endif()
+ if(NOT GTK2_GTK_FOUND)
+ _GTK2_FIND_LIBRARY (GTK gtk-x11 false true)
+ endif()
else()
_GTK2_FIND_LIBRARY (GTK gtk-win32 false true)
endif()