1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-13 14:27:08 +03:00

0033425: Configuration - Implement JeMalloc memory manager

Integrated CMake procedure to choose MMGR
Default MMGE is Native
This commit is contained in:
dpasukhi
2023-11-22 11:49:24 +00:00
parent ed85665b55
commit 3aeea1e96e
12 changed files with 241 additions and 44 deletions

View File

@@ -1,3 +1,14 @@
project(TKernel)
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
# Set desired Memory Manager
if ("${USE_MMGR_TYPE}" STREQUAL "FLEXIBLE")
target_compile_definitions("TKernel" PRIVATE "OCCT_MMGT_OPT_FLEXIBLE")
elseif ("${USE_MMGR_TYPE}" STREQUAL "TBB")
target_compile_definitions("TKernel" PRIVATE "OCCT_MMGT_OPT_TBB")
elseif ("${USE_MMGR_TYPE}" STREQUAL "JEMALLOC")
target_compile_definitions("TKernel" PRIVATE "OCCT_MMGT_OPT_JEMALLOC")
else ()
message (STATUS "Info: Used native memory manager")
endif()

View File

@@ -7,3 +7,4 @@ CSF_dl
CSF_wsock32
CSF_psapi
CSF_androidlog
CSF_MMGR