title: Clang unable to find GLEW framework
body: <p>I'm trying to build a project using GLEW (via point cloud library) on OS X 10.10 using clang++, and when I go to compile I get the error </p>
  
  <pre><code>ld: framework not found glew
  </code></pre>
  
  <p>In fact, even running <code>clang++ -framework glew</code> results in the same error.</p>
  
  <p>The GLEW framework is present in <code>/System/Library/Frameworks/GLEW.framework</code>, and running clang with any other framework in that directory, like <code>clang++ -framework Cocoa</code>, results in what you'd expect, e.g. no input file rather than framework not found.</p>
  
  <p>I'm still new to programming on OS X so I'm not sure how the whole framework structure works. Just to be sure I'm doing everything right, I tested it also with a simple hello world <code>test.cpp</code> file and a CMakeLists.txt file as follows which should certainly work:</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.8)
  project(glew_test)
  
  find_package(GLEW REQUIRED)
  
  include_directories(${GLEW_INCLUDE_DIRS})
  link_directories(${GLEW_LIBRARY_DIRS})
  
  add_executable(testg test.cpp)
  target_link_libraries(testg ${GLEW_LIBRARIES})
  </code></pre>
  
  <p>GLEW is found by find_package, but I STILL get </p>
  
  <pre><code>ld: framework not found glew
  </code></pre>
  
  <p>I've also reinstalled GLEW several times (using homebrew) both from a binary package and from source, reinstalled PCL, and restarted my computer. </p>