Permalink
Browse files

[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.
  • Loading branch information...
tkemmer committed Nov 19, 2017
1 parent ceed6de commit f66a5ded01256492a1f9d835525d608515ea430a
Showing with 5 additions and 1 deletion.
  1. +5 −1 CMakeLists.txt
View
@@ -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}"

0 comments on commit f66a5de

Please sign in to comment.