Try to fix OSX travis build
This commit is contained in:
parent
fd3a2099bc
commit
58e69ce8df
@ -174,10 +174,16 @@ endif()
|
||||
|
||||
# Find system GLEW library or build it if missing
|
||||
if (APPLE AND NOT IOS)
|
||||
find_package(glew)
|
||||
|
||||
if(GLEW_FOUND)
|
||||
include_directories(${GLEW_INCLUDE_DIRS})
|
||||
find_library(GLEW_LIBRARY NAMES glew libglew libGLEW)
|
||||
find_path(GLEW_INCLUDEDIR NAMES GL/glew.h glew.h PATHS)
|
||||
if (NOT GLEW_LIBRARY OR NOT GLEW_INCLUDEDIR)
|
||||
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/glew")
|
||||
include_directories("${PROJECT_SOURCE_DIR}/lib/glew/include")
|
||||
set(GLEW_LIBRARIES "glew")
|
||||
else()
|
||||
set(GLEW_LIBRARIES ${GLEW_LIBRARY})
|
||||
include_directories(${GLEW_INCLUDEDIR})
|
||||
MESSAGE(STATUS "Use system GLEW: ${GLEW_LIBRARIES}")
|
||||
endif()
|
||||
elseif(NOT USE_GLES2 AND NOT SERVER_ONLY)
|
||||
add_definitions(-DGLEW_NO_GLU)
|
||||
|
Loading…
x
Reference in New Issue
Block a user