"Enables feature autodetection. This will automatically overwrite all
DEAL_II_WITH_<...> toggles depending on whether they can be supported or
not."
- ON)
+ OFF)
OPTION(DEAL_II_WITH_BLAS
"Build deal.II with support for BLAS."
OPTION(DEAL_II_WITH_LAPACK
"Build deal.II with support for LAPACK."
- OFF)
+ ON)
OPTION(DEAL_II_WITH_METIS
"Build deal.II with support for Metis."
OPTION(DEAL_II_WITH_UMFPACK
"Build deal.II with support for UMFPACK."
- OFF)
+ ON)
OPTION(DEAL_II_WITH_ZLIB
"Build deal.II with support for zlib."
# Configuration for the umfpack and amd libraries:
#
-# TODO: Implement the dependency on BLAS and LAPACK
MACRO(FIND_FEATURE_UMFPACK_EXTERNAL var)
")
ENDMACRO()
-
-CONFIGURE_FEATURE(UMFPACK)
+#
+# UMFPACK needs BLAS and LAPACK to be configured:
+#
+IF(DEAL_II_WITH_BLAS AND DEAL_II_WITH_LAPACK)
+ CONFIGURE_FEATURE(UMFPACK)
+ELSE()
+ IF(DEAL_II_FEATURE_AUTODETECT)
+ MESSAGE(STATUS
+ "DEAL_II_WITH_UMFPACK has unmet configuration requirements: Both, DEAL_II_WITH_BLAS and DEAL_II_WITH_LAPACK have to be set."
+ )
+ SET_CACHED_OPTION(DEAL_II_WITH_UMFPACK OFF)
+ ELSE()
+ MESSAGE(SEND_ERROR
+ "DEAL_II_WITH_UMFPACK has unmet configuration requirements: Both, DEAL_II_WITH_BLAS and DEAL_II_WITH_LAPACK have to be set."
+ )
+ ENDIF()
+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