From: maier Date: Tue, 6 Nov 2012 11:06:28 +0000 (+0000) Subject: Add ARPACK_DIR X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=185e9f6c6ec8bd345314664a79def5fdfb561ae3;p=dealii-svn.git Add ARPACK_DIR git-svn-id: https://svn.dealii.org/branches/branch_cmake@27424 0785d39b-7218-0410-832d-ea1e28bc413d --- 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()