Add fatal error message

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
This commit is contained in:
Adrian Graber 2021-07-04 18:02:36 +02:00 committed by GitHub
parent cec0cf78a4
commit 0f5d7febb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ if(LIBRW_PLATFORM_GL3)
set(OpenGL_GL_PREFERENCE GLVND) set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL) find_package(OpenGL)
if(NOT 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")