MACRO(FEATURE_ARPACK_CONFIGURE_EXTERNAL var)
- INCLUDE_DIRECTORIES(${ARPACK_INCLUDE_DIR})
- LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${ARPACK_LIBRARY})
+
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${ARPACK_LIBRARIES})
+ ADD_FLAGS(CMAKE_SHARED_LINKER_FLAGS "${ARPACK_LINKER_FLAGS}")
SET(DEAL_II_USE_ARPACK TRUE)
#
# Try to find the ARPACK library
#
+# This module exports
+#
+# ARPACK_LIBRARIES
+#
+# ARPACK_LINKER_FLAGS
+#
INCLUDE(FindPackageHandleStandardArgs)
+#
+# ARPACK needs LAPACK and BLAS as dependency, search for them with the help
+# of the LAPACK find module:
+#
+FIND_PACKAGE(LAPACK)
+
FIND_LIBRARY(ARPACK_LIBRARY
NAMES arpack
PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(ARPACK DEFAULT_MSG ARPACK_LIBRARY)
+SET(ARPACK_LIBRARIES
+ ${ARPACK_LIBRARY}
+ ${LAPACK_LIBRARIES}
+ )
+
+SET(ARPACK_LINKER_FLAGS
+ ${LAPACK_LINKER_FLAGS}
+ )
+
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(ARPACK DEFAULT_MSG
+ ARPACK_LIBRARY
+ LAPACK_LIBRARIES
+ )
IF(ARPACK_FOUND)
MARK_AS_ADVANCED(
+ lapack_LIBRARY
+ atlas_LIBRARY
+ blas_LIBRARY
ARPACK_LIBRARY
)
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