mimalloc.cmake 446 B

12345678910111213141516171819202122
  1. # -*- cmake -*-
  2. if (MIMALLOC_CMAKE_INCLUDED)
  3. return()
  4. endif (MIMALLOC_CMAKE_INCLUDED)
  5. set (MIMALLOC_CMAKE_INCLUDED TRUE)
  6. include(00-BuildOptions)
  7. if (NOT USE_MIMALLOC)
  8. return()
  9. endif ()
  10. include(Prebuilt)
  11. use_prebuilt_binary(mimalloc)
  12. if (WINDOWS)
  13. set(MIMALLOC_LIBRARY mimalloc-override)
  14. else ()
  15. set(MIMALLOC_OBJECT ${LIBS_PREBUILT_DIR}/lib/release/mimalloc.o)
  16. endif ()
  17. include_directories(SYSTEM ${LIBS_PREBUILT_DIR}/include/mimalloc)