Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CaRoLZhangxy committed Apr 8, 2024
1 parent 68132da commit 497ce18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/op/pt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ 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)
set(CMAKE_CXX_COMPILER mpicxx)
endif()

if(CMAKE_TESTING_ENABLED)
Expand Down

0 comments on commit 497ce18

Please sign in to comment.