Skip to content
Snippets Groups Projects
Commit c00e4771 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

BUG: fix opengl find_package for windows

parent 4b83ec95
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,6 @@ project(OTBOpenGL)
set(OTBOpenGL_THIRD_PARTY 1)
set(OTBOpenGL_SYSTEM_INCLUDE_DIRS ${OPENGL_INCLUDE_DIR})
set(OTBOpenGL_LIBRARIES ${OPENGL_LIBRARY})
set(OTBOpenGL_LIBRARIES ${OPENGL_LIBRARIES})
otb_module_impl()
......@@ -46,15 +46,16 @@ else(APPLE)
mark_as_advanced(OPENGL_LIBRARIES)
endif(APPLE)
if(NOT OPENGL_INCLUDE_DIR)
message(FATAL_ERROR "Could not find OpenGL (missing: OPENGL_INCLUDE_DIR")
endif()
if(NOT OPENGL_gl_LIBRARY)
message(FATAL_ERROR "Could not find OpenGL (missing: OPENGL_gl_LIBRARY")
endif()
if(NOT OPENGL_glu_LIBRARY)
message(FATAL_ERROR "Could not find OpenGL (missing: OPENGL_glu_LIBRARY")
if(NOT WIN32)
if(NOT OPENGL_INCLUDE_DIR)
message(FATAL_ERROR "Could not find OpenGL (missing: OPENGL_INCLUDE_DIR")
endif()
if(NOT OPENGL_gl_LIBRARY)
message(FATAL_ERROR "Could not find OpenGL (missing: OPENGL_gl_LIBRARY")
endif()
if(NOT OPENGL_glu_LIBRARY)
message(FATAL_ERROR "Could not find OpenGL (missing: OPENGL_glu_LIBRARY")
endif()
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment