Skip to content

Commit

Permalink
[VIEW] Fix configuration errors when Glew is missing
Browse files Browse the repository at this point in the history
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 f66a5de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Expand Up @@ -590,7 +590,11 @@ ENDIF()


IF (BALL_HAS_VIEW) IF (BALL_HAS_VIEW)
## TODO: Qt handling! ## 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 SET_TARGET_PROPERTIES(VIEW PROPERTIES
SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}" SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}"
Expand Down

0 comments on commit f66a5de

Please sign in to comment.