Skip to content

Commit

Permalink
removed target_sources duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
HasKha committed Apr 15, 2024
1 parent 8421450 commit 3d1497c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit 3d1497c

Please sign in to comment.