mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-09-21 06:30:40 +02:00
cmake: FindOpenGL.cmake shipped by emscripten does not have OpenGL::GL
This commit is contained in:
parent
76e3cf3840
commit
cfa76973ff
@ -226,8 +226,14 @@ if(SDL_DUMMYVIDEO)
|
||||
endif()
|
||||
|
||||
if(OPENGL_FOUND)
|
||||
target_link_libraries(testshader OpenGL::GL)
|
||||
target_link_libraries(testgl2 OpenGL::GL)
|
||||
if(TARGET OpenGL::GL)
|
||||
target_link_libraries(testshader OpenGL::GL)
|
||||
target_link_libraries(testgl2 OpenGL::GL)
|
||||
else()
|
||||
# emscripten's FindOpenGL.cmake does not create OpenGL::GL
|
||||
target_link_libraries(testshader ${OPENGL_gl_LIBRARY})
|
||||
target_link_libraries(testgl2 ${OPENGL_gl_LIBRARY})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
file(GLOB RESOURCE_FILES *.bmp *.wav *.hex moose.dat utf8.txt)
|
||||
|
Loading…
Reference in New Issue
Block a user