Skip to content

Commit

Permalink
Properly export when making shared library
Browse files Browse the repository at this point in the history
Fixes using a dll in windows
  • Loading branch information
bwrsandman committed Dec 3, 2022
1 parent 54aaa91 commit cfc0158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/bgfx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ if(BGFX_LIBRARY_TYPE STREQUAL STATIC)
add_library( bgfx STATIC ${BGFX_SOURCES} )
else()
add_library( bgfx SHARED ${BGFX_SOURCES} )
target_compile_definitions( bgfx PUBLIC BGFX_SHARED_LIB_BUILD=1 )
endif()

if(BGFX_CONFIG_RENDERER_WEBGPU)
Expand Down

0 comments on commit cfc0158

Please sign in to comment.