Commit a485d502 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

COMP: Add math library when checking for OpenGL functions. The Mesa library

relies on it.
parent e3609701
......@@ -214,7 +214,12 @@ ELSE (WIN32)
ELSE (APPLE)
INCLUDE(${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake)
SET(VTK_SAVE_CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES}")
SET(CMAKE_REQUIRED_LIBRARIES "${OPENGL_LIBRARIES};${CMAKE_THREAD_LIBS};${CMAKE_REQUIRED_LIBRARIES}")
SET(CMAKE_REQUIRED_LIBRARIES
${OPENGL_LIBRARIES}
${CMAKE_THREAD_LIBS}
${CMAKE_REQUIRED_LIBRARIES}
-lm
)
CHECK_FUNCTION_EXISTS(glXGetProcAddressARB VTK_USE_GLX_GET_PROC_ADDRESS_ARB)
IF (NOT VTK_USE_GLX_GET_PROC_ADDRESS_ARB)
CHECK_FUNCTION_EXISTS(glXGetProcAddress VTK_USE_GLX_GET_PROC_ADDRESS)
......
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