MACRO(FEATURE_METIS_CONFIGURE_EXTERNAL var)
- INCLUDE_DIRECTORIES(${METIS_INCLUDE_DIR})
- LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${METIS_LIBRARY})
+ INCLUDE_DIRECTORIES(${METIS_INCLUDE_DIRS})
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${METIS_LIBRARIES})
SET(DEAL_II_USE_METIS TRUE)
# ARPACK_LINKER_FLAGS
#
+#
+# TODO: ARPACK and mpi...
+#
+
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:
-#
-# TODO: ARPACK and mpi...
+# ARPACK needs LAPACK and BLAS as dependencies:
#
FIND_PACKAGE(LAPACK)
${LAPACK_LINKER_FLAGS}
)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(ARPACK DEFAULT_MSG
- ARPACK_LIBRARY
- LAPACK_FOUND
- )
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(ARPACK DEFAULT_MSG ARPACK_LIBRARIES)
IF(ARPACK_FOUND)
MARK_AS_ADVANCED(
lib${LIB_SUFFIX} lib64 lib
)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(HDF5 DEFAULT_MSG
- HDF5_LIBRARY
- HDF5_HL_LIBRARY
- HDF5_INCLUDE_DIR
- )
-
SET(HDF5_INCLUDE_DIRS
${HDF5_INCLUDE_DIR}
)
${HDF5_HL_LIBRARY}
)
-IF(HDF5_FOUND)
- MARK_AS_ADVANCED(
- HDF5_DIR
- HDF5_LIBRARY
- HDF5_HL_LIBRARY
- HDF5_INCLUDE_DIR
- )
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(HDF5 DEFAULT_MSG HDF5_LIBRARIES HDF5_INCLUDE_DIRS)
+IF(HDF5_FOUND)
#
# Is hdf5 compiled with support for mpi?
#
SET(HDF5_WITH_MPI TRUE)
ENDIF()
+ MARK_AS_ADVANCED(
+ HDF5_DIR
+ HDF5_LIBRARY
+ HDF5_HL_LIBRARY
+ HDF5_INCLUDE_DIR
+ )
ELSE()
SET(HDF5_DIR "" CACHE STRING
"An optional hint to an hdf5 directory"
#
# Try to find the (serial) METIS library
#
+# This module exports
+#
+# METIS_LIBRARIES
+# METIS_INCLUDE_DIRS
+#
INCLUDE(FindPackageHandleStandardArgs)
build/${CMAKE_CXX_PLATFORM_ID}-${CMAKE_SYSTEM_PROCESSOR}/libmetis
)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(METIS DEFAULT_MSG METIS_LIBRARY METIS_INCLUDE_DIR)
+SET(METIS_LIBRARIES ${METIS_LIBRARY})
+SET(METIS_INCLUDE_DIRS ${METIS_INCLUDE_DIRS})
+
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(METIS DEFAULT_MSG METIS_LIBRARIES METIS_INCLUDE_DIRS)
IF(METIS_FOUND)
#
${SCALAPACK_LINKER_FLAGS}
)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(MUMPS DEFAULT_MSG
- DMUMPS_LIBRARY
- MUMPS_COMMON_LIBRARY
- SCALAPACK_FOUND
- )
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(MUMPS DEFAULT_MSG MUMPS_LIBRARIES)
IF(MUMPS_FOUND)
MARK_AS_ADVANCED(
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETCDF DEFAULT_MSG
- NETCDF_CPLUSPLUS_LIBRARY
- NETCDF_C_LIBRARY
+ NETCDF_LIBRARIES
NETCDF_INCLUDE_DIRS
)
# to figure out how we can build deal.II against the two libraries
# depending on whether we are in debug or optimized mode.
#
-IF (P4EST_DIR
- AND
- EXISTS ${P4EST_DIR}/DEBUG
- AND
- EXISTS ${P4EST_DIR}/FAST)
+IF(P4EST_DIR
+ AND EXISTS ${P4EST_DIR}/DEBUG
+ AND EXISTS ${P4EST_DIR}/FAST)
MESSAGE(STATUS "Found old-style p4est directory layout")
SET (P4EST_DIR ${P4EST_DIR}/FAST)
ENDIF()
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(P4EST DEFAULT_MSG
- P4EST_LIBRARY
- P4EST_INCLUDE_DIR
- SC_FOUND
+ P4EST_LIBRARIES
+ P4EST_INCLUDE_DIRS
)
IF(P4EST_FOUND)
ENDFOREACH()
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(SCALAPACK DEFAULT_MSG
- SCALAPACK_LIBRARY
- LAPACK_FOUND
- )
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(SCALAPACK DEFAULT_MSG SCALAPACK_LIBRARIES)
IF(SCALAPACK_FOUND)
MARK_AS_ADVANCED(
#
# Try to find the Threading Building Blocks library
#
+# TODO: Obey naming convention "LIBRARIES" and "INCLUDE_DIRS"
+#
INCLUDE(FindPackageHandleStandardArgs)
ENDFOREACH()
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TRILINOS DEFAULT_MSG
- TRILINOS_DIR
- TRILINOS_INCLUDE_DIRS
TRILINOS_LIBRARIES
+ TRILINOS_INCLUDE_DIRS
)
#
# UMFPACK depends on BLAS and LAPACK, so search for them:
# TODO: There might be an external dependency for metis, ignore this for
-# now.
+# now.
#
-
-FIND_PACKAGE(BLAS)
FIND_PACKAGE(LAPACK)
-
#
# Two macros to make life easier:
#
${AMD_LIBRARY}
${SuiteSparse_config_LIBRARY} # may be empty
${LAPACK_LIBRARIES}
- ${BLAS_LIBRARIES}
)
SET(UMFPACK_INCLUDE_DIRS
)
SET(UMFPACK_LINKER_FLAGS
- ${BLAS_LINKER_FLAGS}
${LAPACK_LINKER_FLAGS}
)