-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[build] CMake: support OpenGL ES3 in LibraryConfigurations.cmake
#4079
Conversation
cmake/LibraryConfigurations.cmake
Outdated
if(NOT GRAPHICS) | ||
set(GRAPHICS "GRAPHICS_API_OPENGL_ES2") | ||
elseif(${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_ES3") | ||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -sFULL_ES3=1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For GLFW this is put in target_link_options, rather than CMAKE_EXE_LINKER_FLAGS.
Could you do that instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's better, yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it
LibraryConfigurations.cmake
LGTM! approved. |
Actually, one last nit:
Change that and all should be fine. |
@Peter0x44 ouch! just merged to quickly, please @manuel5975p send a patch |
Doesn't another part of the emscripten doc say that -sOPTION is exactly equivalent to -sOPTION=1? |
Only put ES2 as a fallback if
GRAPHICS
is not specified.