Skip to content

Commit

Permalink
[cmake] Define VMA_STATS_STRING_ENABLED=0 to work around a VMA issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yeetari authored and IAmNotHanni committed May 11, 2023
1 parent e00b8c3 commit b5ffd65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ FetchContent_MakeAvailable(vma)
FetchContent_MakeAvailable(volk)
FetchContent_MakeAvailable(Vulkan)

# Work around a VMA compile error from its use of snprintf
target_compile_definitions(VulkanMemoryAllocator PRIVATE VMA_STATS_STRING_ENABLED=0)

if (WIN32)
set(VOLK_STATIC_DEFINES VK_USE_PLATFORM_WIN32_KHR)
endif()
Expand Down

0 comments on commit b5ffd65

Please sign in to comment.