#44237: CMake @3.0.0_2: fails to configure when Gtk.framework exists (bug in FindGTK2.cmake) ------------------------------+------------------- Reporter: luc_j_bourhis@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ------------------------------+------------------- Changes (by mojca@…): * cc: css (removed) * cc: philip@… (added) * owner: macports-tickets@… => css@… * version: 2.3.1 => Comment: This has to be reported upstream. Can you please open a ticket at http://www.cmake.org/Bug? (I wonder why CMake even searches for GTK during installation.) This most probably failed because of a bug in `FindGTK.cmake`. You could try two things. After "`port patch cmake`", edit `FindGTK.cmake`. The first thing you could try is to replace `gtk/gtkversion.h` with `gtkversion.h` in the following chunks of code: {{{ _GTK2_GET_VERSION(GTK2_MAJOR_VERSION GTK2_MINOR_VERSION GTK2_PATCH_VERSION ${GTK2_GTK_INCLUDE_DIR}/gtk/gtkversion.h) ... if(NOT GTK2_FIND_VERSION AND GTK2_GTK_INCLUDE_DIR) _GTK2_GET_VERSION(GTK2_MAJOR_VERSION GTK2_MINOR_VERSION GTK2_PATCH_VERSION ${GTK2_GTK_INCLUDE_DIR}/gtk/gtkversion.h) set(GTK2_VERSION ${GTK2_MAJOR_VERSION}.${GTK2_MINOR_VERSION}.${GTK2_PATCH_VERSION}) endif() }}} The second option would be to modify `GTK2_GTK_INCLUDE_DIR`, but I'm not yet sure how. (Oh, and the third thing to try would be to uninstall `Gtk.framework`. ;) -- Ticket URL: <https://trac.macports.org/ticket/44237#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X