PrusaSlicer-NonPlainar/cmake/modules/FindGLEW.cmake
tamasmeszaros 8d52393a35 Use upstream GLEW, remove duplication in deps and src
Also update glew to 2.2 where NOGDI is properly unset before windows.h is included. This was a patch in our copy of GLEW 1.13
2022-03-02 09:58:46 +01:00

20 lines
472 B
CMake

set(_q "")
if(GLEW_FIND_QUIETLY)
set(_q QUIET)
endif()
find_package(GLEW ${GLEW_FIND_VERSION} CONFIG ${_q})
if(NOT GLEW_FIND_QUIETLY)
if (NOT GLEW_FOUND)
message(STATUS "Falling back to MODULE search for GLEW...")
else()
message(STATUS "GLEW found in ${GLEW_DIR}")
endif()
endif()
if (NOT GLEW_FOUND)
set(_modpath ${CMAKE_MODULE_PATH})
set(CMAKE_MODULE_PATH "")
include(FindGLEW)
set(CMAKE_MODULE_PATH ${_modpath})
endif()