force to use own glew even if the system has installed one(brew)
This commit is contained in:
parent
9127bed11f
commit
20dab5d996
2 changed files with 2 additions and 10 deletions
|
@ -509,6 +509,8 @@ find_package(PNG REQUIRED)
|
||||||
set(OpenGL_GL_PREFERENCE "LEGACY")
|
set(OpenGL_GL_PREFERENCE "LEGACY")
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
|
|
||||||
|
set(GLEW_ROOT "${CMAKE_PREFIX_PATH}")
|
||||||
|
message("GLEW_ROOT: ${GLEW_ROOT}")
|
||||||
# Find glew or use bundled version
|
# Find glew or use bundled version
|
||||||
if (SLIC3R_STATIC AND NOT SLIC3R_STATIC_EXCLUDE_GLEW)
|
if (SLIC3R_STATIC AND NOT SLIC3R_STATIC_EXCLUDE_GLEW)
|
||||||
set(GLEW_USE_STATIC_LIBS ON)
|
set(GLEW_USE_STATIC_LIBS ON)
|
||||||
|
|
|
@ -64,16 +64,6 @@ This module defines the following variables:
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
|
|
||||||
find_package(GLEW CONFIG QUIET)
|
|
||||||
|
|
||||||
if(GLEW_FOUND)
|
|
||||||
find_package_handle_standard_args(GLEW DEFAULT_MSG GLEW_CONFIG)
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(GLEW_VERBOSE)
|
|
||||||
message(STATUS "FindGLEW: did not find GLEW CMake config file. Searching for libraries.")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
find_package(OpenGL QUIET)
|
find_package(OpenGL QUIET)
|
||||||
|
|
Loading…
Reference in a new issue