Skip to content

Commit

Permalink
Update vkmemalloc to latest (c++20)
Browse files Browse the repository at this point in the history
  • Loading branch information
LLeny committed Sep 12, 2023
1 parent c82ee71 commit a8d9621
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ file(GLOB_RECURSE vkhandybug_SOURCES CONFIGURE_DEPENDS
${imgui_SOURCE_DIR}/backends/imgui_impl_vulkan.cpp
${imgui_SOURCE_DIR}/backends/imgui_impl_glfw.cpp
${imgui_filedialog_SOURCE_DIR}/ImGuiFileDialog.cpp
${vkmemalloc_SOURCE_DIR}/src/VmaUsage.cpp
${hashlib_SOURCE_DIR}/md5.cpp
${luasrcFiles}
)
Expand Down
6 changes: 1 addition & 5 deletions tools/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ FetchContent_Declare(
FetchContent_Declare(
vkmemalloc
GIT_REPOSITORY https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
GIT_TAG v3.0.1
GIT_TAG 2f382df218d7e8516dee3b3caccb819a62b571a2
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
)
Expand Down Expand Up @@ -145,10 +145,6 @@ if(NOT libzip_POPULATED)
endif()

if(NOT APPLE)
file(READ "${FETCHCONTENT_BASE_DIR}/vkmemalloc-src/src/CMakeLists.txt" FILE_CONTENTS)
string(REPLACE "CXX_STANDARD 14" "CXX_STANDARD 20" FILE_CONTENTS "${FILE_CONTENTS}")
file(WRITE "${FETCHCONTENT_BASE_DIR}/vkmemalloc-src/src/CMakeLists.txt" "${FILE_CONTENTS}")

#miniaudio MSVC
file(READ "${FETCHCONTENT_BASE_DIR}/miniaudio-src/miniaudio.h" FILE_CONTENTS)
string(REPLACE "sizeof(pInfo->name), 0, FALSE)" "sizeof(pInfo->name), 0, 0)" FILE_CONTENTS "${FILE_CONTENTS}")
Expand Down

0 comments on commit a8d9621

Please sign in to comment.