summaryrefslogtreecommitdiffhomepage
path: root/src/CMakeLists.txt
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 /src/CMakeLists.txt
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 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index bfb4b05b..4ba1c700 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -70,6 +70,9 @@ endif()
if (${PLATFORM} MATCHES "Web")
target_link_options(raylib PUBLIC "-sUSE_GLFW=3")
+ if(${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_ES3")
+ target_link_options(raylib PUBLIC "-sFULL_ES3=1")
+ endif()
endif()
set_target_properties(raylib PROPERTIES