mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 22:19:32 +03:00
fix cmake to generate mimalloc.dll on windows
This commit is contained in:
parent
4ed44f9621
commit
26eaa1f4e2
1 changed files with 1 additions and 6 deletions
|
@ -667,12 +667,7 @@ endif()
|
|||
# -----------------------------------------------------------------------------
|
||||
if (MI_OVERRIDE)
|
||||
if (MI_BUILD_SHARED)
|
||||
target_compile_definitions(mimalloc PRIVATE MI_MALLOC_OVERRIDE)
|
||||
if (WIN32)
|
||||
# on windows we should generate mimalloc-override.dll.
|
||||
string(REPLACE "mimalloc" "mimalloc-override" mi_override_output_name ${mi_basename})
|
||||
set_target_properties(mimalloc PROPERTIES OUTPUT_NAME ${mi_override_output_name})
|
||||
endif()
|
||||
target_compile_definitions(mimalloc PRIVATE MI_MALLOC_OVERRIDE)
|
||||
endif()
|
||||
if(NOT WIN32)
|
||||
# It is only possible to override malloc on Windows when building as a DLL.
|
||||
|
|
Loading…
Add table
Reference in a new issue