Fix windows compilation.

This commit is contained in:
jmsgrogan 2022-11-30 20:53:17 +00:00
parent b45385e8c7
commit b17ba8b3a7
23 changed files with 85 additions and 53 deletions

View file

@ -20,7 +20,7 @@ list(APPEND graphics_HEADERS
RasterPainter.h
PainterFactory.h
)
if(UNIX)
set(OpenGL_GL_PREFERENCE "GLVND")
find_package(OpenGL QUIET)
if (OpenGL_FOUND)
@ -42,6 +42,7 @@ if (OpenGL_FOUND)
else()
message(STATUS "OpenGL not found - skipping support")
endif()
endif()
add_library(${MODULE_NAME} SHARED
${graphics_LIB_INCLUDES}