title: CMake/GCC "unrecognized option" on Mac OS X
body: <p>I'm trying to create a project as a shared library in OS X using CMake 2.8 and gcc 4.6 (from macports). When CMake gets to the point of linking my library into a .dylib, I get the following error from gcc:</p>
  
  <pre><code>g++   -dynamiclib -headerpad_max_install_names -o libmycoollibrary.dylib etc...
  g++: error: unrecognized option '-h'
  make[2]: *** [libnrtCore.dylib] Error 1
  make[1]: *** [CMakeFiles/nrtCore.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>This -headerpad_max_install_names seems to be the problem, but I've never seen it before. Does anyone know how to either get CMake to not include this option, or to get GCC to accept this option?</p>