[Cmake-commits] CMake branch, next, updated. v2.8.2-414-g761e6ff

Philip Lowman philip at yhbt.com
Thu Aug 12 01:56:47 EDT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  761e6ffe15c090b4bfb19c9d36e37d2481a2a0b6 (commit)
       via  f6ca76f195c9a366e1e970a05f747d02285c6a9b (commit)
       via  74a12f304286ac0479ddecebe12612f9ba400173 (commit)
      from  6236852d3916f8c242403c91c3f8a4b506d36b3a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=761e6ffe15c090b4bfb19c9d36e37d2481a2a0b6
commit 761e6ffe15c090b4bfb19c9d36e37d2481a2a0b6
Merge: 6236852 f6ca76f
Author:     Philip Lowman <philip at yhbt.com>
AuthorDate: Thu Aug 12 01:56:45 2010 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu Aug 12 01:56:45 2010 -0400

    Merge topic 'FindGTK2_fixes' into next
    
    f6ca76f Several fixes needed to improve Windows support
    74a12f3 Add detection for new pangommconfig.h header file


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f6ca76f195c9a366e1e970a05f747d02285c6a9b
commit f6ca76f195c9a366e1e970a05f747d02285c6a9b
Author:     Philip Lowman <philip at yhbt.com>
AuthorDate: Thu Aug 12 01:45:19 2010 -0400
Commit:     Philip Lowman <philip at yhbt.com>
CommitDate: Thu Aug 12 01:45:19 2010 -0400

    Several fixes needed to improve Windows support
    
    * Add support for detecting fontconfig.h header
    * Call find_package(Freetype) since it's required
    * Add support for allowing users to add additional library directories
      via the GTK2_ADDITIONAL_SUFFIXES variable (kind of a future-kludge in
      case the GTK developers change versions on any of the directories in the
      future).
    * Fixed a problem on Windows where you had to configure twice to find
      the gtk & gdk libraries

diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 0d012ef..3b99ae2 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -28,6 +28,8 @@
 #
 #   GTK2_DEBUG - Enables verbose debugging of the module
 #   GTK2_SKIP_MARK_AS_ADVANCED - Disable marking cache variables as advanced
+#   GTK2_ADDITIONAL_SUFFIXES - Allows defining additional directories to
+#                              search for include files
 #
 #=================
 # Example Usage:
@@ -64,6 +66,15 @@
 # (To distribute this file outside of CMake, substitute the full
 #  License text for the above reference.)
 
+# Version 1.0 (8/12/2010)
+#   * Add support for detecting new pangommconfig.h header file
+#     (Thanks to Sune Vuorela & the Debian Project for the patch)
+#   * Add support for detecting fontconfig.h header
+#   * Call find_package(Freetype) since it's required
+#   * Add support for allowing users to add additional library directories
+#     via the GTK2_ADDITIONAL_SUFFIXES variable (kind of a future-kludge in
+#     case the GTK developers change versions on any of the directories in the
+#     future).
 # Version 0.8 (1/4/2010)
 #   * Get module working under MacOSX fink by adding /sw/include, /sw/lib
 #     to PATHS and the gobject library
@@ -131,7 +142,8 @@ function(_GTK2_FIND_INCLUDE_DIR _var _hdr)
     endif()
 
     set(_relatives
-        # FIXME
+        # If these ever change, things will break.
+        ${GTK2_ADDITIONAL_SUFFIXES}
         glibmm-2.4
         glib-2.0
         atk-1.0
@@ -390,6 +402,10 @@ endif()
 # Find all components
 #
 
+find_package(Freetype)
+list(APPEND GTK2_INCLUDE_DIRS ${FREETYPE_INCLUDE_DIRS})
+list(APPEND GTK2_LIBRARIES ${FREETYPE_LIBRARIES})
+
 foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
     if(_GTK2_component STREQUAL "gtk")
         _GTK2_FIND_INCLUDE_DIR(GTK2_GLIB_INCLUDE_DIR glib.h)
@@ -401,16 +417,21 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
 
         _GTK2_FIND_INCLUDE_DIR(GTK2_GDK_INCLUDE_DIR gdk/gdk.h)
         _GTK2_FIND_INCLUDE_DIR(GTK2_GDKCONFIG_INCLUDE_DIR gdkconfig.h)
-        _GTK2_FIND_LIBRARY    (GTK2_GDK_LIBRARY gdk-x11 false true)
-        _GTK2_FIND_LIBRARY    (GTK2_GDK_LIBRARY gdk-win32 false true)
-
         _GTK2_FIND_INCLUDE_DIR(GTK2_GTK_INCLUDE_DIR gtk/gtk.h)
-        _GTK2_FIND_LIBRARY    (GTK2_GTK_LIBRARY gtk-x11 false true)
-        _GTK2_FIND_LIBRARY    (GTK2_GTK_LIBRARY gtk-win32 false true)
+
+        if(UNIX)
+            _GTK2_FIND_LIBRARY    (GTK2_GDK_LIBRARY gdk-x11 false true)
+            _GTK2_FIND_LIBRARY    (GTK2_GTK_LIBRARY gtk-x11 false true)
+        else()
+            _GTK2_FIND_LIBRARY    (GTK2_GDK_LIBRARY gdk-win32 false true)
+            _GTK2_FIND_LIBRARY    (GTK2_GTK_LIBRARY gtk-win32 false true)
+        endif()
 
         _GTK2_FIND_INCLUDE_DIR(GTK2_CAIRO_INCLUDE_DIR cairo.h)
         _GTK2_FIND_LIBRARY    (GTK2_CAIRO_LIBRARY cairo false false)
 
+        _GTK2_FIND_INCLUDE_DIR(GTK2_FONTCONFIG_INCLUDE_DIR fontconfig/fontconfig.h)
+
         _GTK2_FIND_INCLUDE_DIR(GTK2_PANGO_INCLUDE_DIR pango/pango.h)
         _GTK2_FIND_LIBRARY    (GTK2_PANGO_LIBRARY pango false true)
 

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=74a12f304286ac0479ddecebe12612f9ba400173
commit 74a12f304286ac0479ddecebe12612f9ba400173
Author:     Philip Lowman <philip at yhbt.com>
AuthorDate: Thu Aug 12 01:38:31 2010 -0400
Commit:     Philip Lowman <philip at yhbt.com>
CommitDate: Thu Aug 12 01:38:31 2010 -0400

    Add detection for new pangommconfig.h header file
    
    Thanks to Sune Vuorela & the Debian Project for the patch
    http://git.debian.org/?p=collab-maint/cmake.git;a=commitdiff;h=5dc3acd7

diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 0769da7..0d012ef 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -439,6 +439,7 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
         _GTK2_FIND_LIBRARY    (GTK2_CAIROMM_LIBRARY cairomm true true)
 
         _GTK2_FIND_INCLUDE_DIR(GTK2_PANGOMM_INCLUDE_DIR pangomm.h)
+        _GTK2_FIND_INCLUDE_DIR(GTK2_PANGOMMCONFIG_INCLUDE_DIR pangommconfig.h)
         _GTK2_FIND_LIBRARY    (GTK2_PANGOMM_LIBRARY pangomm true true)
 
         _GTK2_FIND_INCLUDE_DIR(GTK2_SIGC++_INCLUDE_DIR sigc++/sigc++.h)

-----------------------------------------------------------------------

Summary of changes:
 Modules/FindGTK2.cmake |   34 ++++++++++++++++++++++++++++------
 1 files changed, 28 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list