Skip to content
6 changes: 5 additions & 1 deletion cmake/recipes/sympiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,21 @@ else()
endif()

if(SYMPILER_BLAS_BACKEND STREQUAL "MKL")
message("INCLUDING MKL")
include(mkl)
if(NOT TARGET MKL::MKL)
add_library(MKL::MKL ALIAS mkl::mkl)
endif()
endif()

include(CPM)
CPMAddPackage(
NAME sympiler
GITHUB_REPOSITORY ryansynk/sympiler
GIT_TAG 51bffd948f902b4606b8a8173a933ad9b54e29bf
OPTIONS "SYMPILER_BLAS_BACKEND MKL"
)

add_library(sympiler INTERFACE)
add_library(sympiler::sym_sparse_blas ALIAS sym_sparse_blas)

include(GNUInstallDirs)
Expand Down