OPTION(DEAL_II_WITH_BLAS
"Build deal.II with support for BLAS."
- ON)
+ OFF)
OPTION(DEAL_II_WITH_FUNCTIONPARSER
"Build deal.II with support for functionparser."
OPTION(DEAL_II_WITH_LAPACK
"Build deal.II with support for LAPACK."
- ON)
+ OFF)
OPTION(DEAL_II_WITH_METIS
"Build deal.II with support for Metis."
OPTION(DEAL_II_WITH_TBB
"Build deal.II with support for tbb. This will enable thread support in deal.II."
- ON)
+ OFF)
OPTION(DEAL_II_WITH_UMFPACK
"Build deal.II with support for UMFPACK."
- ON)
+ OFF)
OPTION(DEAL_II_WITH_ZLIB
"Build deal.II with support for zlib."
OPTION(DEAL_II_FORCE_CONTRIB_BOOST
"Always use the bundled boost library instead of an external one."
- ON)
+ OFF)
OPTION(DEAL_II_FORCE_CONTRIB_TBB
"Always use the bundled tbb library instead of an external one."
# Run all system checks:
#
-#FILE(GLOB check_files "contrib/cmake/check/*.cmake")
-#FOREACH(file ${check_files})
-# MESSAGE(STATUS "Include ${file}")
-# INCLUDE(${file})
-#ENDFOREACH()
+FILE(GLOB check_files "contrib/cmake/check/*.cmake")
+FOREACH(file ${check_files})
+ MESSAGE(STATUS "Include ${file}")
+ INCLUDE(${file})
+ENDFOREACH()
#
INCLUDE(configure_blas)
INCLUDE(configure_lapack)
+
+# configure_boost depends on configure_blas and configure_lapack
INCLUDE(configure_umfpack)
INCLUDE(configure_functionparser)
INCLUDE(configure_tbb)
-# Boost has to be incluted after threads because it depends on the thread
-# configuration
+# configure_boost depends on configure_tbb
INCLUDE(configure_boost)
INCLUDE(configure_zlib)
ENDIF()
IF(TBB_FOUND)
- SET(${var} TRUE)
+ #SET(${var} TRUE)
ENDIF()
ENDMACRO()
SET(HAVE_CONTRIB_FEATURE_TBB TRUE)
-MACRO(CONFIGURE_FEATURE_BOOST_CONTRIB var)
+MACRO(CONFIGURE_FEATURE_TBB_CONTRIB var)
#
# Add tbb directly to the object files of deal.II
#
ENDMACRO()
+MACRO(CONFIGURE_FEATURE_TBB_ERROR_MESSAGE)
+ MESSAGE(SEND_ERROR "
+Could not find the tbb library!
+
+Please ensure that the tbb library is installed on your computer.
+If the library is not at a default location, either provide some hints
+via environment variables:
+TBB_LIBRARY_DIR TBB_INCLUDE_DIR
+Or set the relevant variables by hand in ccmake.
+
+Alternatively you may choose to compile the bundled contrib library of
+boost by setting DEAL_II_ALLOW_CONTRIB=on or
+DEAL_II_FORCE_CONTRIB_TBB=on.
+
+")
+ENDMACRO()
+
+
CONFIGURE_FEATURE(TBB)