##
#####
+
#
-# Configuration for tbb support:
+# Configuration for thread support in deal.II with the help of the tbb
+# library:
#
+#
+# Default to off
+#
+SET(DEAL_II_WITH_THREADS
+ OFF # Default to off
+ CACHE BOOL "Build deal.II with threading support." FORCE
+ )
+
#
# Set up genereal threading:
-# The macro will be included in CONFIGURE_FEATURE_TBB_EXTERNAL/BUNDLED.
+# The macro will be included in CONFIGURE_FEATURE_THREADS_EXTERNAL/BUNDLED.
#
MACRO(SETUP_THREADING var)
FIND_PACKAGE(Threads)
# Set up the tbb library:
#
-MACRO(FEATURE_TBB_FIND_EXTERNAL var)
+MACRO(FEATURE_THREADS_FIND_EXTERNAL var)
FIND_PACKAGE(TBB)
IF(TBB_FOUND)
ENDMACRO()
-MACRO(FEATURE_TBB_CONFIGURE_EXTERNAL var)
+MACRO(FEATURE_THREADS_CONFIGURE_EXTERNAL var)
INCLUDE_DIRECTORIES(${TBB_INCLUDE_DIR})
IF (CMAKE_BUILD_TYPE MATCHES "Debug")
ENDMACRO()
-MACRO(FEATURE_TBB_CONFIGURE_BUNDLED var)
+MACRO(FEATURE_THREADS_CONFIGURE_BUNDLED var)
#
# Setup threading (before configuring our build...)
# and if successfull return TRUE:
ENDMACRO()
-CONFIGURE_FEATURE(TBB)
+CONFIGURE_FEATURE(THREADS)
#
#
-# This configure script has to be included after configure_tbb.
+# This configure script has to be included after configure_threads.
# We need some of the variables defined in SETUP_THREADING for
# the setup of the bundled boost library (if used)
#
-IF(NOT FEATURE_TBB_PROCESSED)
+IF(NOT FEATURE_THREADS_PROCESSED)
MESSAGE(FATAL_ERROR "\n"
"Internal build system error:\n"
"configure_boost.cmake included before configure_tbb.cmake\n\n"