From 056800997a1c3a5c5ea5ac43e8fa7c882ef2d26f Mon Sep 17 00:00:00 2001 From: Edwin van den Oetelaar Date: Wed, 6 Nov 2013 00:11:58 -0600 Subject: [PATCH] Running a very common Ubuntu 12.4.3 building from repo could not find the GLEW library. --- CMakeModules/FindGLEW.cmake | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CMakeModules/FindGLEW.cmake b/CMakeModules/FindGLEW.cmake index 88e9a50757..3517571134 100644 --- a/CMakeModules/FindGLEW.cmake +++ b/CMakeModules/FindGLEW.cmake @@ -1,8 +1,8 @@ -# Copyright (c) 2009 Boudewijn Rempt -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. -# +# Copyright (c) 2009 Boudewijn Rempt +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. +# # - try to find glew library and include files # GLEW_INCLUDE_DIR, where to find GL/glew.h, etc. # GLEW_LIBRARIES, the libraries to link against @@ -24,7 +24,7 @@ IF (WIN32) ELSE(CYGWIN) - + FIND_PATH( GLEW_INCLUDE_DIR GL/glew.h $ENV{GLEW_ROOT_PATH}/include ) @@ -67,6 +67,8 @@ ELSE (WIN32) FIND_LIBRARY( GLEW_GLEW_LIBRARY GLEW /usr/openwin/lib /usr/X11R6/lib + /usr/lib + /usr/lib/x86_64-linux-gnu ) ENDIF (APPLE)