[Mesa-dev] [PATCH demos] cmake: Search also for debug GLEW
Tuomo Rinne
tuomo.rinne at pm.me
Wed Jan 16 22:52:45 UTC 2019
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.rinne at 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
More information about the mesa-dev
mailing list