Comment 1 for bug 751940

Revision history for this message
Steve Langasek (vorlon) wrote : Re: Problems with cmake in Ubuntu Ubuntu >= 11.04 (Natty Narwhal)

This is a buggy assumption on the part of cmake. The standard interface that glib provides for consumers to query its library paths and cflags is pkg-config. On natty:

$ pkg-config --cflags glib-2.0
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
$

cmake should use pkg-config in FindGTK2.cmake. If there's a need to search additional paths, this should be done by permuting the *pkg-config* search path, using the PKG_CONFIG_PATH env var.