这是TDengine为了减少jemalloc的依赖而重构的CMakeLists.txt实现。代码如下
https://github.com/taosdata/TDengine/pull/15512/files