From f66a5ded01256492a1f9d835525d608515ea430a Mon Sep 17 00:00:00 2001 From: Thomas Kemmer Date: Sun, 19 Nov 2017 16:18:20 +0100 Subject: [PATCH] [VIEW] Fix configuration errors when Glew is missing Glew should be an optional dependency on macOS and Linux but previously caused configuration errors when missing. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eabb39f8bc..3298183edf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -590,7 +590,11 @@ ENDIF() IF (BALL_HAS_VIEW) ## TODO: Qt handling! - LIST(APPEND VIEW_DEP_LIBRARIES ${GLEW_LIBRARY} ${RTFACT_LIBRARIES}) + IF(GLEW_FOUND) + LIST(APPEND VIEW_DEP_LIBRARIES ${GLEW_LIBRARY}) + ENDIF() + + LIST(APPEND VIEW_DEP_LIBRARIES ${RTFACT_LIBRARIES}) SET_TARGET_PROPERTIES(VIEW PROPERTIES SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}"