summaryrefslogtreecommitdiffhomepage
path: root/cmake/LibraryConfigurations.cmake
diff options
context:
space:
mode:
authormanuel5975p <[email protected]>2024-06-21 09:07:01 +0200
committerGitHub <[email protected]>2024-06-21 09:07:01 +0200
commite7acdd12d8b02617728f11720725ca989fe2390b (patch)
tree2274b6c1311afe0077fd05c6a28ac8d9839d18ba /cmake/LibraryConfigurations.cmake
parent52f2a10db610d0e9f619fd7c521db08a876547d0 (diff)
downloadraylib-e7acdd12d8b02617728f11720725ca989fe2390b.tar.gz
raylib-e7acdd12d8b02617728f11720725ca989fe2390b.zip
[build] CMake: support OpenGL ES3 in `LibraryConfigurations.cmake` (#4079)
* Allow ES3 in LibraryConfigurations.cmake * Put FULL_ES3 as linker option
Diffstat (limited to 'cmake/LibraryConfigurations.cmake')
-rw-r--r--cmake/LibraryConfigurations.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/LibraryConfigurations.cmake b/cmake/LibraryConfigurations.cmake
index f6dd4f31..6d2250c7 100644
--- a/cmake/LibraryConfigurations.cmake
+++ b/cmake/LibraryConfigurations.cmake
@@ -58,7 +58,9 @@ if (${PLATFORM} MATCHES "Desktop")
elseif (${PLATFORM} MATCHES "Web")
set(PLATFORM_CPP "PLATFORM_WEB")
- set(GRAPHICS "GRAPHICS_API_OPENGL_ES2")
+ if(NOT GRAPHICS)
+ set(GRAPHICS "GRAPHICS_API_OPENGL_ES2")
+ endif()
set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
elseif (${PLATFORM} MATCHES "Android")