serialbox: patch to add missing include directives (#32880)

This commit is contained in:
Sergey Kosukhin 2022-09-28 18:33:59 +02:00 committed by GitHub
parent 25a75ff9bf
commit 81f9a5b732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/src/serialbox-c/FortranWrapper.cpp
+++ b/src/serialbox-c/FortranWrapper.cpp
@@ -12,6 +12,8 @@
*
\*===------------------------------------------------------------------------------------------===*/
+#include <array>
+
#include "serialbox-c/FortranWrapper.h"
#include "serialbox-c/FieldMetainfo.h"
#include "serialbox-c/Metainfo.h"

View File

@ -63,6 +63,10 @@ class Serialbox(CMakePackage):
patch("nag/examples.patch", when="@2.3.1:%nag+fortran+examples")
patch("nag/ftg.patch", when="@2.3.1:%nag+ftg")
# Add missing include directives
# (part of https://github.com/GridTools/serialbox/pull/259):
patch("missing_includes.patch", when="@:2.6.1+c")
conflicts(
"+ftg",
when="~fortran",