From 3d1497c965da6272d4fbcd71339ae0ba9cb3e103 Mon Sep 17 00:00:00 2001 From: Giorgio Gori Date: Mon, 15 Apr 2024 12:15:46 -0700 Subject: [PATCH] removed target_sources duplication --- CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d5e5fb9..8abef0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,11 +174,14 @@ if(OpenMP_FOUND) target_link_libraries(nasoq PRIVATE OpenMP::OpenMP_CXX) endif() -if(NASOQ_USE_CLAPACK) +if(NASOQ_USE_CLAPACK OR NASOQ_USE_BLAS_Accelerate) target_sources(nasoq PRIVATE "src/clapacke/clapacke_dlapmt.cpp" "src/clapacke/clapacke_dsytrf.cpp" ) +endif() + +if(NASOQ_USE_CLAPACK) target_compile_definitions(nasoq PUBLIC "NASOQ_USE_CLAPACK") target_link_libraries(nasoq PRIVATE clapack::clapack) endif() @@ -200,10 +203,6 @@ elseif(NASOQ_USE_BLAS_Accelerate) target_link_libraries(nasoq PRIVATE LAPACK::LAPACK) target_compile_definitions(nasoq PRIVATE "ACCELERATE") target_compile_definitions(nasoq PUBLIC "ACCELERATE_NEW_LAPACK") - target_sources(nasoq PRIVATE - "src/clapacke/clapacke_dlapmt.cpp" - "src/clapacke/clapacke_dsytrf.cpp" - ) endif() if(NASOQ_WITH_EIGEN)