Skip to content

Commit

Permalink
Do not link against xcb in Static Builds on Apple platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Feb 29, 2024
1 parent 4996577 commit dff1598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ 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 )
if( OGRE_STATIC AND UNIX AND NOT APPLE AND NOT OGRE_CONFIG_UNIX_NO_X11 )
set( OGRE_LIBRARIES ${OGRE_LIBRARIES} xcb xcb-randr )
endif()

Expand Down

0 comments on commit dff1598

Please sign in to comment.