Building debug GLEW using CMake adds a "d" postfix to the library name.
This fix finds the libary with that convention too.

Signed-off-by: Tuomo Rinne <tuomo.ri...@pm.me>
---
 CMakeLists.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1f63316d..e7eb58c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,8 +10,9 @@ find_package (OpenGL REQUIRED)
 find_package (GLUT REQUIRED)
 find_package (X11)
 
-find_library (GLEW_glew_LIBRARY GLEW
-       /usr/lib
+find_library (GLEW_glew_LIBRARY 
+       NAMES GLEW GLEWd
+       PATHS /usr/lib
 )
 
 find_path (GLEW_INCLUDE_DIR GL/glew.h
-- 
2.20.0


_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to