Rename target library for default windows name
@@ -187,7 +187,13 @@ endif()
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/gl/build_info.c PROPERTIES OBJECT_DEPENDS "${GL_SRC};${GL_H}")
+if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
if(STATICLIB)
+ add_library(OPENGL32 STATIC ${GL_SRC})
+ else()
+ add_library(OPENGL32 SHARED ${GL_SRC})
+ endif()
+elseif(STATICLIB)
add_library(GL STATIC ${GL_SRC})
else()
add_library(GL SHARED ${GL_SRC})
