wireshark/cmake/modules
Peter Wu fa1d0be4bb cmake: update FindGTK2 to v3.0.1-1824-g0b12815
Current FindGTK2.cmake as included with Wireshark cannot do a 32-bit
build even after setting CMAKE_LIBRARY_PATH=/usr/lib32. After an update
to upstream FindGTK2 (v3.0.1-1824-g0b12815), things build again.

Compared to upstream FindGTK2, FindWSWinLibs and related hints have been
added (note that "${GTK2_HINTS}/lib" is not a typo, it is needed as some
headers are includes in locations like lib/gtk-2.0/include/). The
include paths have become relative again as there are no files like
FindPackageHandleStandardArgs in the Wireshark source tree. Diff between
upstream FindGTK2 and the version in this patch:

    diff --git a/cmake/modules/FindGTK2.cmake b/cmake/modules/FindGTK2.cmake
    index 72bb8eb..9b4f989 100644
    --- a/cmake/modules/FindGTK2.cmake
    +++ b/cmake/modules/FindGTK2.cmake
    @@ -167,2 +167,5 @@

    +include( FindWSWinLibs )
    +FindWSWinLibs( "gtk2" "GTK2_HINTS" )
    +
     #=============================================================
    @@ -176,4 +179,4 @@

    -include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
    -include(${CMAKE_CURRENT_LIST_DIR}/CMakeParseArguments.cmake)
    +include(SelectLibraryConfigurations)
    +include(CMakeParseArguments)

    @@ -289,2 +292,5 @@ function(_GTK2_FIND_INCLUDE_DIR _var _hdr)
                 ${_suffixes}
    +        HINTS
    +            "${GTK2_HINTS}/include"
    +            "${GTK2_HINTS}/lib"
         )
    @@ -395,2 +401,4 @@ function(_GTK2_FIND_LIBRARY _var _lib _expand_vc _append_version)
                 [HKEY_LOCAL_MACHINE\\SOFTWARE\\gtkmm\\2.4;Path]/lib
    +        HINTS
    +            "${GTK2_HINTS}/lib"
             )
    @@ -409,2 +417,4 @@ function(_GTK2_FIND_LIBRARY _var _lib _expand_vc _append_version)
                 [HKEY_LOCAL_MACHINE\\SOFTWARE\\gtkmm\\2.4;Path]/lib
    +        HINTS
    +            "${GTK2_HINTS}/lib"
             )
    @@ -829,3 +839,3 @@ set(_GTK2_did_we_find_everything true)  # This gets set to GTK2_FOUND

    -include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
    +include(FindPackageHandleStandardArgs)

Change-Id: I02103409a79ea30d1bf7cc0dfb43a9e41f8a4db3
Reviewed-on: https://code.wireshark.org/review/4293
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-01 08:16:23 +00:00
..
CMakeInstallDirs.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
COPYING-CMAKE-SCRIPTS Continue to remove $Id$ from top of file 2014-03-31 16:00:04 +00:00
CheckCCompilerFlag.cmake Another message from Clang for unknown -f and -m flags. 2014-06-18 18:46:09 +00:00
CheckCLinkerFlag.cmake - Reset a few more variables used in FindXYZ scripts. 2010-09-28 19:23:15 +00:00
FindADNS.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindAIRPCAP.cmake Move generating HAVE_AIRPCAP to main CMakeLists.txt as is done with 2014-08-22 10:55:51 +00:00
FindASCIIDOC.cmake As long as NEWS is still part of the git tree: At least don't differ 2014-08-25 22:16:02 +00:00
FindCAP.cmake cmake: use pkg-config for resolving dependencies 2014-10-01 08:14:34 +00:00
FindCARES.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindChocolatey.cmake Win flex-bison and Chocolatey updates. 2014-08-07 21:54:54 +00:00
FindDOXYGEN.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindFOP.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindFreetype.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindGCRYPT.cmake Add libgpg-error6-0 to the GCRYPT_ERROR_LIBRARY search list. 2014-07-30 23:08:37 +00:00
FindGEOIP.cmake cmake: use pkg-config for resolving dependencies 2014-10-01 08:14:34 +00:00
FindGLIB2.cmake cmake: use pkg-config for resolving dependencies 2014-10-01 08:14:34 +00:00
FindGMODULE2.cmake Detecting gmodule2 on Homebrew almost worked... it behaves more like 2014-06-16 18:32:26 +00:00
FindGNUTLS.cmake cmake: use pkg-config for resolving dependencies 2014-10-01 08:14:34 +00:00
FindGTHREAD2.cmake It's so simple: If we require a package but provide alternative methods 2014-06-17 14:29:52 +00:00
FindGTK2.cmake cmake: update FindGTK2 to v3.0.1-1824-g0b12815 2014-10-01 08:16:23 +00:00
FindGTK3.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindHtmlViewer.cmake cmake: Not all system have HtmlViewer 2014-05-30 12:47:12 +00:00
FindKERBEROS.cmake cmake: use pkg-config for resolving dependencies 2014-10-01 08:14:34 +00:00
FindLEX.cmake Win flex-bison and Chocolatey updates. 2014-08-07 21:54:54 +00:00
FindLUA.cmake cmake: use pkg-config for resolving dependencies 2014-10-01 08:14:34 +00:00
FindLYNX.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindM.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindNL.cmake cmake: use pkg-config for resolving dependencies 2014-10-01 08:14:34 +00:00
FindOS_X_FRAMEWORKS.cmake Fix OS X CMake build. 2014-06-24 07:10:12 +00:00
FindPCAP.cmake Add support for getting nanosecond time stamp resolution when capturing. 2014-09-28 23:29:05 +00:00
FindPOD.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindPORTAUDIO.cmake cmake: use pkg-config for resolving dependencies 2014-10-01 08:14:34 +00:00
FindSBC.cmake Add Bluetooth SBC Codec support in cmake 2014-02-17 21:44:17 +00:00
FindSED.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindSETCAP.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindSH.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindSMI.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindWSWinLibs.cmake Update CMake build for win32 to build QT again, and to find 2014-06-08 12:13:35 +00:00
FindWinSparkle.cmake Add WinSparkle to the CMake build to bring it into line with 2014-08-22 22:04:33 +00:00
FindXMLLINT.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindXSLTPROC.cmake Convert admon graphics to SVG. 2014-08-24 02:56:35 +00:00
FindYACC.cmake Win flex-bison and Chocolatey updates. 2014-08-07 21:54:54 +00:00
FindYAPP.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindZLIB.cmake cmake: use pkg-config for resolving dependencies 2014-10-01 08:14:34 +00:00
LICENSE.txt Remove some $Id$ lines 2014-07-12 14:31:51 +00:00
UseABICheck.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
UseAsn2Wrs.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
UseCheckAPI.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
UseCustomIncludes.cmake Having CmakeListsCustom.txt in git defeats the purpose of its existence: 2014-09-18 07:02:00 +00:00
UseLemon.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
UseMakeDissectorReg.cmake Remove a bogus make-dissector-reg dependency from UseMakeDissectorReg.cmake 2014-08-12 04:19:31 +00:00
UseMakeTapReg.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
UseWinLibs.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
gmxTestLargeFiles.cmake Copy over cmake largfile detection from the gromacs project. 2013-07-23 09:40:21 +00:00
readme.txt More SVN properties cleanup. 2013-10-27 01:11:15 +00:00

readme.txt

The following modules have been copied from CMake trunk _without_ modifications:

* FindZLIB.cmake