diff options
-rw-r--r-- | var/spack/repos/builtin/packages/arpack-ng/parpack_cmake.patch | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/arpack-ng/parpack_cmake.patch b/var/spack/repos/builtin/packages/arpack-ng/parpack_cmake.patch index 0ba8600046..9b11bea6ac 100644 --- a/var/spack/repos/builtin/packages/arpack-ng/parpack_cmake.patch +++ b/var/spack/repos/builtin/packages/arpack-ng/parpack_cmake.patch @@ -3,15 +3,16 @@ index 607d221..345b7fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,11 +113,12 @@ set_target_properties(arpack PROPERTIES OUTPUT_NAME arpack${LIBSUFFIX}) - + if (MPI) # add_library(parpack SHARED -- add_library(parpack +- add_library(parpack + add_library(parpack ${parpacksrc_STAT_SRCS} ${parpackutil_STAT_SRCS}) - + target_link_libraries(parpack ${MPI_Fortran_LIBRARIES}) + target_link_libraries(parpack arpack) set_target_properties(parpack PROPERTIES OUTPUT_NAME parpack${LIBSUFFIX}) endif () + |