From cec0cf78a439bd8bb3ec8c7e74766f9029a3e1e3 Mon Sep 17 00:00:00 2001 From: Adrian Graber Date: Sun, 4 Jul 2021 16:51:20 +0200 Subject: [PATCH 1/2] Fix double "TARGET" typo --- cmake/librw-config.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/librw-config.cmake.in b/cmake/librw-config.cmake.in index 519e63e..08dfb16 100644 --- a/cmake/librw-config.cmake.in +++ b/cmake/librw-config.cmake.in @@ -10,7 +10,7 @@ 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) + if(NOT TARGET OpenGL::OpenGL AND NOT TARGET OpenGL::EGL AND NOT TARGET OpenGL::GL) message(FATAL_ERROR ) endif() From 0f5d7febb339bb5ea65a31e6c03286c4b2bba7fc Mon Sep 17 00:00:00 2001 From: Adrian Graber Date: Sun, 4 Jul 2021 18:02:36 +0200 Subject: [PATCH 2/2] Add fatal error message Co-authored-by: Anonymous Maarten --- cmake/librw-config.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/librw-config.cmake.in b/cmake/librw-config.cmake.in index 08dfb16..47b3487 100644 --- a/cmake/librw-config.cmake.in +++ b/cmake/librw-config.cmake.in @@ -11,7 +11,7 @@ if(LIBRW_PLATFORM_GL3) set(OpenGL_GL_PREFERENCE GLVND) find_package(OpenGL) 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() if(LIBRW_GL3_GFXLIB STREQUAL "GLFW")