Skip to content

Commit

Permalink
if(NOT TARGET SUNDIALS::KLU)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 11, 2023
1 parent 0b50e1c commit 2559e0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deps/AMICI/cmake/AmiciConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ find_package(BTF REQUIRED)
find_package(COLAMD REQUIRED)
find_package(KLU REQUIRED)

add_library(SUNDIALS::KLU INTERFACE IMPORTED)
if(NOT TARGET SUNDIALS::KLU)
add_library(SUNDIALS::KLU INTERFACE IMPORTED)
endif()
target_link_libraries(
SUNDIALS::KLU
INTERFACE "${KLU_STATIC}"
Expand Down

0 comments on commit 2559e0f

Please sign in to comment.