[cmake-developers] [CMake 0015997]: CMake 3.5 fails to build on OS X with GTK framework installed

Mantis Bug Tracker mantis at public.kitware.com
Tue Mar 1 22:56:57 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15997 
====================================================================== 
Reported By:                Andrew.W
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15997
Category:                   CMake
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-03-02 14:56 AEDT
Last Modified:              2016-03-02 14:56 AEDT
====================================================================== 
Summary:                    CMake 3.5 fails to build on OS X with GTK framework
installed
Description: 
Running bootstrap on OS X fails with GTK framework installed in
/Library/Frameworks.

Error is:
CMake Error at Modules/FindGTK2.cmake:182 (file):
  file STRINGS file
  "/Library/Frameworks/Gtk.framework/Headers/gtk/gtk/gtkversion.h" cannot be
  read.

Actual path is /Library/Frameworks/Gtk.framework/Headers/gtk/gtkversion.h

I fixed the error by editing Modules/FindGTK2.cmake and changing references from
  ${GTK2_GTK_INCLUDE_DIR}/gtk/gtkversion.h
to
  ${GTK2_GTK_INCLUDE_DIR}/gtkversion.h
Lines 631 and 883

Steps to Reproduce: 
Download CMake ( cmake-3.5.0-rc3 )
Run 'bootstrap'
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-03-02 14:56 Andrew.W       New Issue                                    
======================================================================



More information about the cmake-developers mailing list