Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cpp/deplex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ target_include_directories(
target_link_libraries(${TARGET_NAME} PUBLIC Eigen3::Eigen)
target_link_libraries(${TARGET_NAME} PRIVATE dsyev)
target_link_libraries(${TARGET_NAME} PRIVATE rtl)
target_link_libraries(${TARGET_NAME} PUBLIC mimalloc)

if (OpenMP_CXX_FOUND)
target_link_libraries(${TARGET_NAME} PRIVATE OpenMP::OpenMP_CXX)
endif ()
Expand Down
1 change: 1 addition & 0 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
add_subdirectory(eigen3)
add_subdirectory(mimalloc)

if (${BUILD_TESTS})
add_subdirectory(googletest)
Expand Down
9 changes: 9 additions & 0 deletions external/mimalloc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include(FetchContent)

FetchContent_Declare(
mimalloc
GIT_REPOSITORY https://github.com/microsoft/mimalloc.git
GIT_TAG v2.1.2
)

FetchContent_MakeAvailable(mimalloc)