]> https://gitweb.dealii.org/ - dealii.git/commitdiff
cmake: query p4est configuration for binary output
authorMatthias Maier <tamiko@43-1.org>
Sun, 10 May 2020 20:23:33 +0000 (15:23 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 10 May 2020 20:33:50 +0000 (15:33 -0500)
cmake/configure/configure_p4est.cmake
cmake/modules/FindP4EST.cmake

index ede23871d14ad6c4c9b51630810f6950fce54595..7c6651b62ba79490ce1d3a811025e73b8925913b 100644 (file)
@@ -75,5 +75,9 @@ MACRO(FEATURE_P4EST_FIND_EXTERNAL var)
   ENDIF()
 ENDMACRO()
 
+MACRO(FEATURE_P4EST_CONFIGURE_EXTERNAL)
+  SET(DEAL_II_P4EST_WITH_VTK_BINARY ${P4EST_WITH_VTK_BINARY})
+ENDMACRO()
+
 
 CONFIGURE_FEATURE(P4EST)
index 155157a31c2faa87c3fdbe83db198e58a1b134a5..d342bc580091138e4eadba0e843325aa8dc88d43 100644 (file)
@@ -21,6 +21,7 @@
 #   P4EST_INCLUDE_DIRS
 #   P4EST_WITH_MPI
 #   P4EST_WITH_ZLIB
+#   P4EST_WITH_VTK_BINARY
 #   P4EST_VERSION
 #   P4EST_VERSION_MAJOR
 #   P4EST_VERSION_MINOR
@@ -128,6 +129,17 @@ IF(EXISTS ${P4EST_INCLUDE_DIR}/p4est_config.h)
     SET(P4EST_WITH_ZLIB TRUE)
   ENDIF()
 
+  #
+  # Is binary vtk output enabled?
+  #
+  FILE(STRINGS "${P4EST_INCLUDE_DIR}/p4est_config.h" P4EST_VTK_BINARY_STRING
+    REGEX "#define.*P4EST_ENABLE_VTK_BINARY 1")
+  IF("${P4EST_VTK_BINARY_STRING}" STREQUAL "")
+    SET(P4EST_WITH_VTK_BINARY FALSE)
+  ELSE()
+    SET(P4EST_WITH_VTK_BINARY TRUE)
+  ENDIF()
+
   #
   # Extract version numbers:
   #

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.