--- a/CMakeModules/FindGLEW.cmake
+++ b/CMakeModules/FindGLEW.cmake
@@ -13,7 +13,7 @@
   ENDIF(${HUGIN_SHARED})
 ELSE(WIN32)
   FIND_PATH(GLEW_INCLUDE_DIR GL/glew.h PATHS /usr/include /usr/local/include)
-  FIND_LIBRARY(GLEW_LIBRARIES GLEW PATHS /usr/lib /usr/local/lib)
+  FIND_LIBRARY(GLEW_LIBRARIES GLEW PATHS ${SYSTEM_LIB_DIRS})
 ENDIF(WIN32)
 
 IF (GLEW_INCLUDE_DIR AND GLEW_LIBRARIES)