diff --git a/cmake/targets/BuildMimalloc.cmake b/cmake/targets/BuildMimalloc.cmake index 359f129bae..3484d6588b 100644 --- a/cmake/targets/BuildMimalloc.cmake +++ b/cmake/targets/BuildMimalloc.cmake @@ -51,9 +51,9 @@ endif() # Workaround for linker issue on macOS and Linux x64 # https://github.com/microsoft/mimalloc/issues/512 -# if(APPLE OR (LINUX AND NOT DEBUG)) -# set(MIMALLOC_LIBRARY CMakeFiles/mimalloc-obj.dir/src/static.c.o) -# endif() +if(APPLE OR (LINUX AND NOT DEBUG)) + set(MIMALLOC_LIBRARY CMakeFiles/mimalloc-obj.dir/src/static.c.o) +endif() register_cmake_command(