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:
@@ -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()
|
||||
|
@@ -7,3 +7,4 @@ CSF_dl
|
||||
CSF_wsock32
|
||||
CSF_psapi
|
||||
CSF_androidlog
|
||||
CSF_MMGR
|
||||
|
Reference in New Issue
Block a user