summarylogtreecommitdiffstats
path: root/opengl3.patch
blob: a6174116d2de9843e74638798d0a13b9e3dc972f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -ruN mygui-MyGUI3.4.2/Platforms/OpenGL3/OpenGL3Platform/CMakeLists.txt patched/Platforms/OpenGL3/OpenGL3Platform/CMakeLists.txt
--- mygui-MyGUI3.4.2/Platforms/OpenGL3/OpenGL3Platform/CMakeLists.txt	2023-05-09 11:46:12.000000000 +0200
+++ patched/Platforms/OpenGL3/OpenGL3Platform/CMakeLists.txt	2023-06-09 21:22:03.549989153 +0200
@@ -26,8 +26,12 @@
 if (APPLE)
 	target_link_libraries(${PROJECTNAME} ${OPENGL_gl_LIBRARY} MyGUIEngine)
 else ()
-	# opengl instead of gl makes it compile and work in a libX11-free wayland setup
-	target_link_libraries(${PROJECTNAME} ${OPENGL_opengl_LIBRARY} MyGUIEngine)
+	if(MINGW)
+	    target_link_libraries(${PROJECTNAME} ${OPENGL_gl_LIBRARY} MyGUIEngine)
+        else()
+	    # opengl instead of gl makes it compile and work in a libX11-free wayland setup
+	    target_link_libraries(${PROJECTNAME} ${OPENGL_opengl_LIBRARY} MyGUIEngine)
+        endif()
 endif ()
 if (MYGUI_USE_SYSTEM_GLEW)
 	target_link_libraries(${PROJECTNAME} ${GLEW_LIBRARIES})