]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Export LAPACK_DIR and BLAS_DIR if they are needed
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 13 Aug 2013 02:55:42 +0000 (02:55 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 13 Aug 2013 02:55:42 +0000 (02:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@30298 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindDEALII_LAPACK.cmake

index 131981c8dddc645da7fcd33c96922a56a27e93cf..b1c7630265d3687f3c1de6959203882bbabd98da 100644 (file)
@@ -50,6 +50,17 @@ FIND_PACKAGE(LAPACK)
 
 SET(CMAKE_PREFIX_PATH ${_cmake_prefix_path_backup})
 
+MARK_AS_ADVANCED(
+  atlas_LIBRARY
+  blas_LIBRARY
+  gslcblas_LIBRARY
+  lapack_LIBRARY
+  m_LIBRARY
+  ptf77blas_LIBRARY
+  ptlapack_LIBRARY
+  refblas_LIBRARY
+  reflapack_LIBRARY
+  )
 
 
 IF(LAPACK_FOUND)
@@ -73,18 +84,6 @@ IF(LAPACK_FOUND)
     LIST(APPEND LAPACK_LIBRARIES ${BLAS_LIBRARIES})
   ENDIF()
 
-  MARK_AS_ADVANCED(
-    atlas_LIBRARY
-    blas_LIBRARY
-    gslcblas_LIBRARY
-    lapack_LIBRARY
-    m_LIBRARY
-    ptf77blas_LIBRARY
-    ptlapack_LIBRARY
-    refblas_LIBRARY
-    reflapack_LIBRARY
-    )
-
   #
   # Well, in case of static archives we have to manually pick up the
   # complete link interface. *sigh*
@@ -110,9 +109,21 @@ IF(LAPACK_FOUND)
   ENDFOREACH()
   SWITCH_LIBRARY_PREFERENCE()
 
+  MARK_AS_ADVANCED(
+    BLAS_DIR
+    LAPACK_DIR
+    )
+
 ELSE()
   SET(DEALII_LAPACK_FOUND FALSE)
 
+  SET(LAPACK_DIR "" CACHE PATH
+    "An optional hint to a LAPACK installation"
+    )
+  SET(BLAS_DIR "" CACHE PATH
+    "An optional hint to a BLAS installation"
+    )
+
   #
   # If we couldn't find LAPACK, clean up the library variables:
   #

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.