mirror of https://github.com/aap/librw.git
commit
a5bc972322
|
@ -10,8 +10,8 @@ if(LIBRW_PLATFORM_GL3)
|
||||||
|
|
||||||
set(OpenGL_GL_PREFERENCE GLVND)
|
set(OpenGL_GL_PREFERENCE GLVND)
|
||||||
find_package(OpenGL)
|
find_package(OpenGL)
|
||||||
if(NOT TARGET TARGET OpenGL::OpenGL AND NOT TARGET OpenGL::EGL AND NOT TARGET OpenGL::GL)
|
if(NOT TARGET OpenGL::OpenGL AND NOT TARGET OpenGL::EGL AND NOT TARGET OpenGL::GL)
|
||||||
message(FATAL_ERROR )
|
message(FATAL_ERROR "find_package(OpenGL) failed: no target was created")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(LIBRW_GL3_GFXLIB STREQUAL "GLFW")
|
if(LIBRW_GL3_GFXLIB STREQUAL "GLFW")
|
||||||
|
|
Loading…
Reference in New Issue