summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorRoy Qu <[email protected]>2023-07-14 03:20:06 +0800
committerGitHub <[email protected]>2023-07-13 21:20:06 +0200
commit22895ba14fab982ca74ec1526b48b924d1174e60 (patch)
treec2361956ee401167b1ca284420115ad0db939136 /cmake
parentbc9c06325481c0b4b5a2db3b2a8281465569ba3e (diff)
downloadraylib-22895ba14fab982ca74ec1526b48b924d1174e60.tar.gz
raylib-22895ba14fab982ca74ec1526b48b924d1174e60.zip
fix: cmake option "OPENGL_VERSION" doesn't work (#3170)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/LibraryConfigurations.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/LibraryConfigurations.cmake b/cmake/LibraryConfigurations.cmake
index e9eee630..d12df3a0 100644
--- a/cmake/LibraryConfigurations.cmake
+++ b/cmake/LibraryConfigurations.cmake
@@ -106,7 +106,7 @@ elseif ("${PLATFORM}" MATCHES "DRM")
endif ()
-if (NOT ${OPENGL_VERSION})
+if (NOT ${OPENGL_VERSION} MATCHES "OFF")
set(${SUGGESTED_GRAPHICS} "${GRAPHICS}")
if (${OPENGL_VERSION} MATCHES "4.3")
set(GRAPHICS "GRAPHICS_API_OPENGL_43")