Use string compare for library type

This commit is contained in:
Sandy Carter
2021-11-13 19:18:59 -05:00
committed by Sandy
parent a01e8e043f
commit 7e7a6795a1

View File

@@ -40,7 +40,11 @@ else()
endif()
# Create the bgfx target
add_library( bgfx ${BGFX_LIBRARY_TYPE} ${BGFX_SOURCES} )
if(BGFX_LIBRARY_TYPE STREQUAL STATIC)
add_library( bgfx STATIC ${BGFX_SOURCES} )
else()
add_library( bgfx SHARED ${BGFX_SOURCES} )
endif()
if(BGFX_CONFIG_RENDERER_WEBGPU)
include(cmake/3rdparty/webgpu.cmake)