Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
force to use own glew even if the system has installed one(brew)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Dec 25, 2023
1 parent 0fa5100 commit 0b0fd2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,8 @@ find_package(PNG REQUIRED)
set(OpenGL_GL_PREFERENCE "LEGACY")
find_package(OpenGL REQUIRED)

set(GLEW_ROOT "${CMAKE_PREFIX_PATH}")
message("GLEW_ROOT: ${GLEW_ROOT}")
# Find glew or use bundled version
if (SLIC3R_STATIC AND NOT SLIC3R_STATIC_EXCLUDE_GLEW)
set(GLEW_USE_STATIC_LIBS ON)
Expand Down
10 changes: 0 additions & 10 deletions cmake/modules/FindGLEW.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,6 @@ This module defines the following variables:

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)
find_package(OpenGL QUIET)
Expand Down

0 comments on commit 0b0fd2f

Please sign in to comment.