2022-01-19 12:09:31 +00:00
|
|
|
set(_q "")
|
|
|
|
if(GLEW_FIND_QUIETLY)
|
|
|
|
set(_q QUIET)
|
2019-12-11 11:24:21 +00:00
|
|
|
endif()
|
2022-01-19 12:09:31 +00:00
|
|
|
find_package(GLEW ${GLEW_FIND_VERSION} CONFIG ${_q})
|
2019-12-11 11:24:21 +00:00
|
|
|
|
2022-01-19 12:09:31 +00:00
|
|
|
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}")
|
2019-12-11 11:24:21 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2022-01-19 12:09:31 +00:00
|
|
|
if (NOT GLEW_FOUND)
|
|
|
|
set(_modpath ${CMAKE_MODULE_PATH})
|
|
|
|
set(CMAKE_MODULE_PATH "")
|
|
|
|
include(FindGLEW)
|
|
|
|
set(CMAKE_MODULE_PATH ${_modpath})
|
|
|
|
endif()
|