0
0
mirror of https://github.com/minecraft-linux/mcpelauncher-manifest synced 2024-11-13 13:59:18 +00:00
mcpelauncher/ext/snmalloc.cmake
ChristopherHX 94bc336310
increase stability (#774)
* synchronize x11 access
* allow to use snmalloc instead of system allocator
2023-02-04 11:01:27 +01:00

15 lines
405 B
CMake

include(FetchContent)
set(SNMALLOC_HEADER_ONLY_LIBRARY ON)
set(SNMALLOC_USE_CXX17 ON)
FetchContent_Declare(
snmalloc_ext
URL "https://github.com/microsoft/snmalloc/archive/refs/tags/0.6.1.zip"
)
FetchContent_GetProperties(snmalloc_ext)
if(NOT snmalloc_ext_POPULATED)
FetchContent_Populate(snmalloc_ext)
add_subdirectory(${snmalloc_ext_SOURCE_DIR} ${snmalloc_ext_BINARY_DIR})
endif()