Unity OpenGL3 Build Fails on Linux

Description

The GL3+ build fails on Linux when the unity build options is enabled:
http://www.ogre3d.org/forums/viewtopic.php?f=4&t=65010&start=175

— a/RenderSystems/GL3Plus/CMakeLists.txt
+++ b/RenderSystems/GL3Plus/CMakeLists.txt
@@ -158,9 +158,15 @@
${OPENGL_INCLUDE_DIR}
)

+if (UNIX)
+ogre_add_library(RenderSystem_GL3Plus ${OGRE_LIB_TYPE} ${HEADER_FILES} ${SOURCE_FILES} ${GLSL_SOURCE} ${PLATFORM_HEADERS} ${PLATFORM_SOURCES} SEPARATE "src/GLX/OgreGLXWindow.cpp" "src/GLX/OgreGLXGLSupport.cpp")
+else()
ogre_add_library(RenderSystem_GL3Plus ${OGRE_LIB_TYPE} ${HEADER_FILES} ${SOURCE_FILES} ${GLSL_SOURCE} ${PLATFORM_HEADERS} ${PLATFORM_SOURCES})
+endif()
+
target_link_libraries(RenderSystem_GL3Plus OgreMain ${OPENGL_LIBRARIES} ${PLATFORM_LIBS})

+
if (NOT OGRE_STATIC)
set_target_properties(RenderSystem_GL3Plus PROPERTIES
COMPILE_DEFINITIONS OGRE_GLPLUGIN_EXPORTS

Environment

None

Assignee

M

Reporter

Dermont Gill

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure