[umpire] Fix missing header (#24198)

This commit is contained in:
Teodor Nikolov 2021-06-08 22:17:51 +03:00 committed by GitHub
parent 92be358582
commit d0fdbc1ab2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff --git a/src/umpire/util/allocation_statistics.cpp b/src/umpire/util/allocation_statistics.cpp
index 597ae61f..0c3f7865 100644
--- a/src/umpire/util/allocation_statistics.cpp
+++ b/src/umpire/util/allocation_statistics.cpp
@@ -8,6 +8,7 @@
#include "umpire/util/allocation_statistics.hpp"
#include <algorithm>
+#include <limits>
namespace umpire {
namespace util {

View file

@ -48,6 +48,7 @@ class Umpire(CMakePackage, CudaPackage, ROCmPackage):
patch('camp_target_umpire_3.0.0.patch', when='@3.0.0')
patch('cmake_version_check.patch', when='@4.1')
patch('missing_header_for_numeric_limits.patch', when='@4.1:5.0.1')
variant('fortran', default=False, description='Build C/Fortran API')
variant('c', default=True, description='Build C API')