microsoft / mimalloc

mimalloc is a compact general purpose allocator with excellent performance.
MIT License
9.74k stars 793 forks source link

"mimalloc-obj" is not in any export set #839

Open anthonyalayo opened 5 months ago

anthonyalayo commented 5 months ago

Hey there,

While debugging why I was encountering the issue https://github.com/microsoft/mimalloc/issues/838, I realized it was due to linking order.

I solved it by using mimalloc-obj, as recommended by your example: https://github.com/microsoft/mimalloc/blob/master/test/CMakeLists.txt#L30-L34

However this results in the following error:

CMake Error: install(EXPORT "backend-targets" ...) includes target "backend" which requires target "mimalloc-obj" that is not in any export set.

I see that export support was commented out several years ago: https://github.com/microsoft/mimalloc/commit/cf8815854cb0eff64394ef324a2f693d15dab91a

Can we uncomment it out? Perhaps the issues before are all cleared up?