Merge pull request #80 from AGraber/patch-1

Fix double "TARGET" typo
This commit is contained in:
aap 2021-07-04 18:12:34 +02:00 committed by GitHub
commit a5bc972322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,8 +10,8 @@ if(LIBRW_PLATFORM_GL3)
set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL)
if(NOT TARGET TARGET OpenGL::OpenGL AND NOT TARGET OpenGL::EGL AND NOT TARGET OpenGL::GL)
message(FATAL_ERROR )
if(NOT TARGET OpenGL::OpenGL AND NOT TARGET OpenGL::EGL AND NOT TARGET OpenGL::GL)
message(FATAL_ERROR "find_package(OpenGL) failed: no target was created")
endif()
if(LIBRW_GL3_GFXLIB STREQUAL "GLFW")