]> https://gitweb.dealii.org/ - dealii.git/commitdiff
address review comments 10327/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 27 May 2020 03:43:11 +0000 (22:43 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 27 May 2020 03:43:11 +0000 (22:43 -0500)
cmake/configure/configure_1_cpp_taskflow.cmake
cmake/macros/macro_deal_ii_package_handle.cmake
cmake/modules/FindCPP_TASKFLOW.cmake

index c16290664a270e163c3103d85ae60e750c47ed63..b7f6b42263dc24a8d9c965c1ea712ff4b25a5ec5 100644 (file)
 #
 
 
+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()
index d7c8ce851d77e9b00ad87e51f55887081a427b97..4c148eeab04e630f10de5944c8018804cfc4b52f 100644 (file)
@@ -154,7 +154,10 @@ MACRO(DEAL_II_PACKAGE_HANDLE _feature _var)
     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 "")
index 791a914a5df65112ed650f09afe1601899a9e301..6c486fd1346e168ff22f0f5e579093d5ad5b5877 100644 (file)
@@ -22,7 +22,7 @@
 #   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

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.