diff --git a/CMakeLists.txt b/CMakeLists.txt index 58317f2452b..2786e35884e 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -272,6 +272,10 @@ set(OGRE_Paging_LIBRARIES ${OGRE_NEXT}Paging) set(OGRE_Terrain_LIBRARIES ${OGRE_NEXT}Terrain) set(OGRE_Volume_LIBRARIES ${OGRE_NEXT}Volume) +if( OGRE_STATIC AND UNIX AND NOT OGRE_CONFIG_UNIX_NO_X11 ) + set( OGRE_LIBRARIES ${OGRE_LIBRARIES} xcb xcb-randr ) +endif() + # Specify build paths set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${OGRE_BINARY_DIR}/lib") set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${OGRE_BINARY_DIR}/lib")