Revision: 40980
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40980&view=rev
Author:   erikgreenwald
Date:     2010-10-13 19:47:16 +0000 (Wed, 13 Oct 2010)

Log Message:
-----------
win32 gtk seems to define GTK_MINOR_VERSION instead of GTK2_MINOR_VERSION, so 
try to accomodate

Modified Paths:
--------------
    isst/trunk/cmake-modules/FindGTK2.cmake

Modified: isst/trunk/cmake-modules/FindGTK2.cmake
===================================================================
--- isst/trunk/cmake-modules/FindGTK2.cmake     2010-10-13 19:12:27 UTC (rev 
40979)
+++ isst/trunk/cmake-modules/FindGTK2.cmake     2010-10-13 19:47:16 UTC (rev 
40980)
@@ -355,6 +355,13 @@
                           GTK2_MINOR_VERSION
                           GTK2_PATCH_VERSION
                           ${GTK2_GTK_INCLUDE_DIR}/gtk/gtkversion.h)
+       if(GTK2_MAJOR_VERSION} STREQUAL "")
+           message(STATUS "Didn't find GTK2 variables, trying plain GTK")
+           _GTK2_GET_VERSION(GTK_MAJOR_VERSION
+                             GTK_MINOR_VERSION
+                             GTK_PATCH_VERSION
+                             ${GTK2_GTK_INCLUDE_DIR}/gtk/gtkversion.h)
+       endif()
         set(GTK2_VERSION
             ${GTK2_MAJOR_VERSION}.${GTK2_MINOR_VERSION}.${GTK2_PATCH_VERSION})
         if(GTK2_FIND_VERSION_EXACT)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to