summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-07-06 13:42:59 +0200
committerDenis Davydov <davydden@gmail.com>2016-07-06 13:42:59 +0200
commitc8fc56686cbab2f7f9d2dd76740604d2daeb9783 (patch)
tree79b84c082dedf6f7a25b28699abdfc798e28d4ab
parent63e45c586c93da209590c31e7185084af87fa316 (diff)
downloadspack-c8fc56686cbab2f7f9d2dd76740604d2daeb9783.tar.gz
spack-c8fc56686cbab2f7f9d2dd76740604d2daeb9783.tar.bz2
spack-c8fc56686cbab2f7f9d2dd76740604d2daeb9783.tar.xz
spack-c8fc56686cbab2f7f9d2dd76740604d2daeb9783.zip
arpack-ng: fix corrupted parpack_cmake.patch
-rw-r--r--var/spack/repos/builtin/packages/arpack-ng/parpack_cmake.patch7
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 ()
+