#
+MACRO(FEATURE_CPP_TASKFLOW_FIND_EXTERNAL var)
+ FIND_PACKAGE(CPP_TASKFLOW)
+
+ IF(CPP_TASKFLOW_FOUND)
+ SET(${var} TRUE)
+ ENDIF()
+
+ IF(CPP_TASKFLOW_VERSION VERSION_LESS "2.4")
+ # Clear the previously determined version numbers to avoid confusion
+ SET(CPP_TASKFLOW_VERSION "bundled")
+ SET(CPP_TASKFLOW_VERSION_MAJOR "")
+ SET(CPP_TASKFLOW_VERSION_MINOR "")
+
+ MESSAGE(STATUS
+ "The externally provided Cpp Taskflow library is older than version 2.4, "
+ "which cannot be used with deal.II."
+ )
+ SET(CPP_TASKFLOW_ADDITIONAL_ERROR_STRING
+ "The externally provided Cpp Taskflow library is older than version\n"
+ "2.4, which is the oldest version compatible with deal.II."
+ )
+ SET(${var} FALSE)
+ ENDIF()
+ENDMACRO()
+
+
MACRO(FEATURE_CPP_TASKFLOW_CONFIGURE_BUNDLED)
LIST(APPEND CPP_TASKFLOW_BUNDLED_INCLUDE_DIRS ${CPP_TASKFLOW_FOLDER}/include)
ENDMACRO()
ENDFOREACH()
#
- # Remove certain system libraries from the link interface
+ # Remove certain system libraries from the link interface. This is
+ # purely cosmetic (we always implicitly link against the C library, and
+ # we always set up threading by linking against libpthread.so if
+ # necessary).
#
FOREACH(_suffix LIBRARIES LIBRARIES_DEBUG LIBRARIES_RELEASE)
IF(NOT "${${_feature}_${_suffix}}" STREQUAL "")
# CPP_TASKFLOW_VERSION
#
-SET(CPP_TASKFLOW_DIR "" CACHE PATH "An optional hint to a CPP CPP_TASKFLOW installation")
+SET(CPP_TASKFLOW_DIR "" CACHE PATH "An optional hint to a Cpp Taskflow installation")
SET_IF_EMPTY(CPP_TASKFLOW_DIR "$ENV{CPP_TASKFLOW_DIR}")
FIND_PACKAGE(CPP_TASKFLOW_CONFIG