41397f90a4
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
20 lines
472 B
CMake
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() |