title: Linking against GLEW with CMake
body: <p>My project depends on GLEW and is built with CMake, so i took the FindGLEW.cmake from here <a href="http://code.google.com/p/nvidia-texture-tools/source/browse/trunk/cmake/FindGLEW.cmake?r=96" rel="nofollow">http://code.google.com/p/nvidia-texture-tools/source/browse/trunk/cmake/FindGLEW.cmake?r=96</a> and wrote <code>find_package(GLEW REQUIRED)</code> in my CMakeLists.txt. Problem is that i am working on a cluster PC were several versions of GLEW are available. One version is stored in <code>/usr/lib</code> which is not the latest. the latest version is stored in <code>/opt/local/lib64</code>. this is the version i want to link against. so i added the path to the FindGLEW.cmake under the GLEW_LIBRARY paths. the problem is that the makefile always links against the older version, but i need the newest version (1.7) for using stuff like <code>GL_PATCHES</code>, <code>GL_PATCH_PARAMETERS</code> and so on. can i some how force CMake to use the newer version like it is the case with FindBoost.cmake. one solution is to erase the older one's but this is not an option. i also changed the order of the paths in the GLEW_LIBRARY list, but without success.</p>
  
  <p>in my old Makefile i just wrote <code>LDDFLAGS = -L/opt/local/lib64 -lGLEW</code> so the path is absolutely clear, but now with CMake i want to use the find feature, but want to prefer a specific version.</p>