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

COMP: Use thread libraries when checking for OpenGL functions. Some OpenGL

libraries depend on thread libraries.
parent 4b79548b
......@@ -214,7 +214,7 @@ 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_REQUIRED_LIBRARIES}")
SET(CMAKE_REQUIRED_LIBRARIES "${OPENGL_LIBRARIES};${CMAKE_THREAD_LIBS};${CMAKE_REQUIRED_LIBRARIES}")
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