When checking for glew via cmake check to see that the system version of glew

is at least 1.8 and has the methods of glew 1.9.  This is an annoying
hack to deal with Ubuntu's glew setup, which is glew 1.8 with 1.9
methods patched in.
This commit is contained in:
Glenn Rice
2013-09-07 12:24:32 -05:00
parent cf09974d61
commit a3d86ceead
2 changed files with 36 additions and 1 deletions

View File

@ -646,7 +646,7 @@ if(WIN32)
else()
if(NOT ANDROID)
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
check_lib(GLEW GLEW GL/glew.h)
include(FindGLEW)
endif()
if(NOT GLEW_FOUND)
message("Using static GLEW from Externals")