Skip to content

Commit

Permalink
Fix bug: private link mpi when find_mpi is true (#3656)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaRoLZhangxy authored Apr 8, 2024
1 parent 6f0bda5 commit 2a5bbce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/op/pt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ endif()

find_package(MPI)
if(MPI_FOUND)
target_link_libraries(deepmd_op_pt INTERFACE MPI::MPI_CXX)
target_link_libraries(deepmd_op_pt PRIVATE MPI::MPI_CXX)
target_compile_definitions(deepmd_op_pt PRIVATE USE_MPI)
endif()

Expand Down

0 comments on commit 2a5bbce

Please sign in to comment.