Skip to content

Commit 8d4daea

Browse files
committed
Fix build error in static builds on Linux
1 parent b607c12 commit 8d4daea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ set(OGRE_Paging_LIBRARIES ${OGRE_NEXT}Paging)
272272
set(OGRE_Terrain_LIBRARIES ${OGRE_NEXT}Terrain)
273273
set(OGRE_Volume_LIBRARIES ${OGRE_NEXT}Volume)
274274

275+
if( OGRE_STATIC AND UNIX AND NOT OGRE_CONFIG_UNIX_NO_X11 )
276+
set( OGRE_LIBRARIES ${OGRE_LIBRARIES} xcb xcb-randr )
277+
endif()
278+
275279
# Specify build paths
276280
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${OGRE_BINARY_DIR}/lib")
277281
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${OGRE_BINARY_DIR}/lib")

0 commit comments

Comments
 (0)