Commit 153c771a authored by Richard Berger's avatar Richard Berger
Browse files

Use PIC in mpi_stubs when BUILD_SHARED_LIBS=on

parent 313b8bc2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -71,6 +71,9 @@ else()
  else()
    add_library(mpi_stubs STATIC ${MPI_SOURCES})
  endif()
  if(BUILD_SHARED_LIBS)
    set_target_properties(mpi_stubs PROPERTIES POSITION_INDEPENDENT_CODE ON)
  endif()
  include_directories(${LAMMPS_SOURCE_DIR}/STUBS)
  list(APPEND LAMMPS_LINK_LIBS mpi_stubs)
endif()