]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Add a compatibility check for taskflow-3.0 onwards 11682/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 4 Feb 2021 18:46:28 +0000 (12:46 -0600)
committerMatthias Maier <tamiko@43-1.org>
Thu, 4 Feb 2021 18:46:28 +0000 (12:46 -0600)
cmake/configure/configure_1_taskflow.cmake

index d4ed1d561bed8cb67f74da7db27bc56fdcc3aebf..1951a41a326e9d0c0905349e6af2c77a5e4db0ba 100644 (file)
@@ -42,6 +42,26 @@ MACRO(FEATURE_TASKFLOW_FIND_EXTERNAL var)
       )
     SET(${var} FALSE)
   ENDIF()
+
+
+  IF(NOT TASKFLOW_VERSION VERSION_LESS "3.0" AND NOT DEAL_II_HAVE_CXX17)
+    # Clear the previously determined version numbers to avoid confusion
+    SET(TASKFLOW_VERSION "bundled")
+    SET(TASKFLOW_VERSION_MAJOR "")
+    SET(TASKFLOW_VERSION_MINOR "")
+
+    MESSAGE(STATUS
+      "The externally provided Taskflow library (version 3.0 onwards)
+      requires C++17 support, which has not been configured."
+      )
+    SET(TASKFLOW_ADDITIONAL_ERROR_STRING
+      "The externally provided Taskflow library (version 3.0 onwards) "
+      "requires C++17 support, but no C++17 support had been detected "
+      "during configuration.\n"
+      "Try to set -DDEAL_II_CXX_FLAGS=\"-std=c++17\" by hand.\n"
+      )
+    SET(${var} FALSE)
+  ENDIF()
 ENDMACRO()
 
 

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


Typeset in Trocchi and Trocchi Bold Sans Serif.