title: cmake cannot find glib2
body: <p>On OS X 10.8.2, I have macports and have installed:</p>
  
  <pre><code>glib2
  pkg-config
  </code></pre>
  
  <p>among other things. The cmake I run tries to use pkg-config to find glib2. Running <code>pkg-config --libs glib-2.0</code>:</p>
  
  <p><code>-L/opt/local/lib -lglib-2.0 -lintl</code></p>
  
  <p>and <code>--cflags</code>:</p>
  
  <p><code>-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include</code></p>
  
  <p>Yet, when I try to enter these in (individually, or all of them using <code>;</code> or <code>:</code>), and all sorts of combinations, or when I tried downloading gtk and using the glib2 dirs of that: cmake complains it can't find the directories:</p>
  
  <pre><code>checking for module 'gstreamer-0.10'
    found gstreamer-0.10, version 0.10.36
  checking for module 'glib-2.0'
    found glib-2.0, version 2.34.3
  CMake Error at /Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
    Could NOT find GLib2 (missing: GLIB2_LIBDIR GLIB2_INCLUDE_DIRS)
  Call Stack (most recent call first):
    /Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
    cmake/Modules/FindGLib2.cmake:127 (find_package_handle_standard_args)
    cmake/Modules/FindGStreamer.cmake:12 (find_package)
    CMakeLists.txt:32 (find_package)
  </code></pre>
  
  <p>I saw <a href="http://mac-os-forge.2317878.n4.nabble.com/Package-glib-2-0-not-found-in-pkg-config-search-path-td195399.html" rel="nofollow">this page</a> about conflicting <code>pkg-config</code>'s with MonoDevelop. I uninstalled Mono, don't have any other pkg-config binaries that I can find, and cleared the cmake cache without any luck. I've looked at the cmake specifics, and its looking for glib.h and glibconfig.h, which are in those directories. Why can't it just behave?</p>