Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
bgfx: make bx and bimg private
Browse files Browse the repository at this point in the history
This makes it so in shared mode, bx and bimg static libs aren't installed
  • Loading branch information
bwrsandman committed Jan 31, 2021
1 parent bf668bf commit 2e98471
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/bgfx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ target_include_directories( bgfx
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)

# bgfx depends on bx and bimg
target_link_libraries( bgfx PUBLIC bx bimg )
target_link_libraries( bgfx PRIVATE bx bimg )

# ovr support
if( BGFX_USE_OVR )
Expand Down
2 changes: 1 addition & 1 deletion cmake/examples.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function( add_example ARG_NAME )
if( ARG_COMMON )
add_library( example-${ARG_NAME} STATIC EXCLUDE_FROM_ALL ${SOURCES} )
target_include_directories( example-${ARG_NAME} PUBLIC ${BGFX_DIR}/examples/common )
target_link_libraries( example-${ARG_NAME} PUBLIC bgfx dear-imgui meshoptimizer )
target_link_libraries( example-${ARG_NAME} PUBLIC bgfx bx bimg dear-imgui meshoptimizer )
if( BGFX_WITH_GLFW )
find_package( glfw3 REQUIRED )
target_link_libraries( example-${ARG_NAME} PUBLIC glfw )
Expand Down

0 comments on commit 2e98471

Please sign in to comment.