Skip to content

Commit cee8be7

Browse files
author
Fei Yang
committed
Guard benchmark external deps target
1 parent fd34cbb commit cee8be7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

source/source_cell/module_neighlist/test/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ if(ENABLE_MPI)
4545
)
4646
target_link_libraries(MODULE_CELL_NEIGHBOR_neighbor_search_mpi_benchmark
4747
PRIVATE
48-
parameter base device Threads::Threads MPI::MPI_CXX abacus::external_deps ${math_libs}
48+
parameter base device Threads::Threads MPI::MPI_CXX ${math_libs}
4949
)
50+
if(TARGET abacus::external_deps)
51+
target_link_libraries(MODULE_CELL_NEIGHBOR_neighbor_search_mpi_benchmark PRIVATE abacus::external_deps)
52+
endif()
5053
if(USE_OPENMP)
5154
target_link_libraries(MODULE_CELL_NEIGHBOR_neighbor_search_mpi_benchmark PRIVATE OpenMP::OpenMP_CXX)
5255
endif()

0 commit comments

Comments
 (0)