From 185e9f6c6ec8bd345314664a79def5fdfb561ae3 Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 6 Nov 2012 11:06:28 +0000 Subject: [PATCH] Add ARPACK_DIR git-svn-id: https://svn.dealii.org/branches/branch_cmake@27424 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/modules/FindARPACK.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deal.II/cmake/modules/FindARPACK.cmake b/deal.II/cmake/modules/FindARPACK.cmake index e45e01fb08..d0806d8b4b 100644 --- a/deal.II/cmake/modules/FindARPACK.cmake +++ b/deal.II/cmake/modules/FindARPACK.cmake @@ -23,6 +23,8 @@ INCLUDE(FindPackageHandleStandardArgs) +SET_IF_EMPTY(ARPACK_DIR "$ENV{ARPACK_DIR}") + # # ARPACK needs LAPACK and BLAS as dependency, search for them with the help # of the LAPACK find module: @@ -33,6 +35,8 @@ FIND_PACKAGE(LAPACK) FIND_LIBRARY(ARPACK_LIBRARY NAMES arpack + HINTS + ${ARPACK_DIR} PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib ) @@ -56,6 +60,11 @@ IF(ARPACK_FOUND) atlas_LIBRARY blas_LIBRARY ARPACK_LIBRARY + ARPACK_DIR ) +ELSE() + SET(ARPACK_DIR "" CACHE STRING + "An optional hint to an ARPACK installation" + ) ENDIF() -- 2.39.5