shithub: cstory

Download patch

ref: 02939dfa316431d9b6488d8b30ca480ebb7eaee9
parent: 70f4f6fad59fe31f6f728e50a4dc930ccbb2d0ca
parent: 88a554784b9683ef0dc7dc3d0cf0ce07ab494745
author: Clownacy <[email protected]>
date: Fri Jan 31 13:56:02 EST 2020

Merge pull request #97 from GabrielRavier/fixPortableOpenGL

Fix portable OpenGL

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -527,7 +527,7 @@
 	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")