]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add ARPACK_DIR
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Nov 2012 11:06:28 +0000 (11:06 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Nov 2012 11:06:28 +0000 (11:06 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27424 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindARPACK.cmake

index e45e01fb08b2bc3d6f2c9bf2cda8ff10b06b51bc..d0806d8b4b164c53688c00fc596f36c2fed24b43 100644 (file)
@@ -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()
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.