From 7757755e40c353b931c69fe5ed58af2685f56974 Mon Sep 17 00:00:00 2001 From: darealshinji Date: Thu, 19 Jun 2014 10:43:37 +0200 Subject: [PATCH] fix detection of libglew library on GNU/Linux --- src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c20a86ba71..e4ac655ca0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -253,7 +253,11 @@ endif( GLEW_INCLUDE_DIR ) # GLEW include directory include_directories( "${GLEW_INCLUDE_DIR}" ) -find_library( GLEW_LIBRARY glew32 ) +if( NOT WIN32 OR APPLE ) + find_library( GLEW_LIBRARY libGLEW.so ) +else( NOT WIN32 OR APPLE ) + find_library( GLEW_LIBRARY glew32 ) +endif( NOT WIN32 OR APPLE ) if( NOT GLEW_LIBRARY ) message( SEND_ERROR "Could not find GLEW library files" )