View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0014593 | CMake | Modules | public | 2013-11-23 21:01 | 2014-06-02 08:37 |
|
Reporter | Markus Engel | |
Assigned To | Daniele E. Domenichelli | |
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | |
Platform | | OS | Mac OS | OS Version | 10.6.8 |
Product Version | CMake 2.8.12 | |
Target Version | | Fixed in Version | CMake 3.0 | |
|
Summary | 0014593: FindGTK2.cmake fails to find GTK with Quartz backend |
Description | If you compile gtk2 on Mac OS using MacPorts, you may choose between the x11 and the quartz backend. While FindGTK2 detects gtk2+x11 correctly, it doesn't find gtk2+quartz. The attached patch adds support for gtk2+quartz. |
Tags | No tags attached. |
|
Attached Files | findgtk2_quartz.patch [^] (1,166 bytes) 2013-11-23 21:01 [Show Content] [Hide Content]--- FindGTK2.cmake 2013-11-23 21:23:57.051214637 +0100
+++ FindGTK2.cmake 2013-11-23 21:36:30.412963041 +0100
@@ -688,7 +688,13 @@
_GTK2_FIND_INCLUDE_DIR(GDK gdk/gdk.h)
_GTK2_FIND_INCLUDE_DIR(GDKCONFIG gdkconfig.h)
- if(UNIX)
+ if(APPLE)
+ _GTK2_FIND_LIBRARY (GDK gdk-quartz false true)
+
+ if(NOT GTK2_GDK_FOUND)
+ _GTK2_FIND_LIBRARY (GDK gdk-x11 false true)
+ endif()
+ elseif(UNIX)
_GTK2_FIND_LIBRARY (GDK gdk-x11 false true)
else()
_GTK2_FIND_LIBRARY (GDK gdk-win32 false true)
@@ -697,7 +703,13 @@
GTK2_OPTIONAL_DEPENDS pangocairo cairo)
_GTK2_FIND_INCLUDE_DIR(GTK gtk/gtk.h)
- if(UNIX)
+ if(APPLE)
+ _GTK2_FIND_LIBRARY (GTK gtk-quartz false true)
+
+ if(NOT GTK2_GTK_FOUND)
+ _GTK2_FIND_LIBRARY (GTK gtk-x11 false true)
+ endif()
+ elseif(UNIX)
_GTK2_FIND_LIBRARY (GTK gtk-x11 false true)
else()
_GTK2_FIND_LIBRARY (GTK gtk-win32 false true)
|
|