Merge pull request #97 from GabrielRavier/fixPortableOpenGL

Fix portable OpenGL
This commit is contained in:
Clownacy 2020-01-31 18:56:02 +00:00 committed by GitHub
commit 02939dfa31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -527,7 +527,7 @@ if(RENDERER MATCHES "OpenGL3")
target_include_directories(CSE2 PRIVATE "external/glad/include")
find_package(OpenGL REQUIRED)
target_link_libraries(CSE2 OpenGL::GL)
target_link_libraries(CSE2 OpenGL::GL ${CMAKE_DL_LIBS})
endif()
if(RENDERER MATCHES "OpenGLES2")