FindGLEW.cmake 472 B

1234567891011121314151617181920
  1. set(_q "")
  2. if(GLEW_FIND_QUIETLY)
  3. set(_q QUIET)
  4. endif()
  5. find_package(GLEW ${GLEW_FIND_VERSION} CONFIG ${_q})
  6. if(NOT GLEW_FIND_QUIETLY)
  7. if (NOT GLEW_FOUND)
  8. message(STATUS "Falling back to MODULE search for GLEW...")
  9. else()
  10. message(STATUS "GLEW found in ${GLEW_DIR}")
  11. endif()
  12. endif()
  13. if (NOT GLEW_FOUND)
  14. set(_modpath ${CMAKE_MODULE_PATH})
  15. set(CMAKE_MODULE_PATH "")
  16. include(FindGLEW)
  17. set(CMAKE_MODULE_PATH ${_modpath})
  18. endif()