mirror of
https://github.com/bkaradzic/bgfx.cmake.git
synced 2026-02-18 05:13:04 +01:00
Properly export when making shared library
Fixes using a dll in windows
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user