fix detection of libglew library on GNU/Linux

This commit is contained in:
darealshinji 2014-06-19 10:43:37 +02:00
parent 5a0f1a882a
commit 7757755e40

View file

@ -253,7 +253,11 @@ endif( GLEW_INCLUDE_DIR )
# GLEW include directory # GLEW include directory
include_directories( "${GLEW_INCLUDE_DIR}" ) include_directories( "${GLEW_INCLUDE_DIR}" )
if( NOT WIN32 OR APPLE )
find_library( GLEW_LIBRARY libGLEW.so )
else( NOT WIN32 OR APPLE )
find_library( GLEW_LIBRARY glew32 ) find_library( GLEW_LIBRARY glew32 )
endif( NOT WIN32 OR APPLE )
if( NOT GLEW_LIBRARY ) if( NOT GLEW_LIBRARY )
message( SEND_ERROR "Could not find GLEW library files" ) message( SEND_ERROR "Could not find GLEW library files" )