I attempted to build slang but got the following error when configuring:
CMake Error at external/CMakeLists.txt:103 (message):
Could not find mimalloc package, min version: 2.1
Call Stack (most recent call first):
CMakeLists.txt:173 (include)
This was because I had a dynamic library for mimalloc on my system, which cmake found, but the build is hard-coded to use the mimalloc-static target. This PR fixes the cmake configuration by choosing the dynamic mimalloc target if available.
I attempted to build slang but got the following error when configuring:
This was because I had a dynamic library for mimalloc on my system, which cmake found, but the build is hard-coded to use the
mimalloc-static
target. This PR fixes the cmake configuration by choosing the dynamicmimalloc
target if available.