Commit b40ee3fb authored by Kenneth Moreland's avatar Kenneth Moreland

Update finding glfw

For the latest version of the glfw library, you need to find a packaged
named glfw3 (not GLFW).
parent 77c708f9
......@@ -25,14 +25,15 @@ OpenGL contexts. Supported values are GLUT and GLFW."
MESSAGE(STATUS "Cannot find GLUT library. OpenGL tests disabled.")
ENDIF (GLUT_FOUND)
ELSEIF (ICET_OPENGL_WINDOW_LIBRARY STREQUAL GLFW)
FIND_PACKAGE(GLFW)
IF (GLFW_FOUND)
INCLUDE_DIRECTORIES(${GLFW_INCLUDE_DIR})
FIND_PACKAGE(glfw3)
IF (glfw3_FOUND)
#INCLUDE_DIRECTORIES(${GLFW_INCLUDE_DIR})
SET(GLFW_LIBRARY glfw)
SET(ICET_TESTS_USE_OPENGL 1)
SET(ICET_TESTS_USE_GLFW 1)
ELSE (GLFW_FOUND)
ELSE (glfw3_FOUND)
MESSAGE(WARNING "Cannot find GLFW library. OpenGL tests disabled.")
ENDIF (GLFW_FOUND)
ENDIF (glfw3_FOUND)
ELSE ()
MESSAGE(SEND_ERROR "Invalid value for ICET_OPENGL_WINDOW_LIBRARY: ${ICET_OPENGL_WINDOW_LIBRARY}")
ENDIF ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment