ecflow: fix compilation with Intel classic compilers (#42622)

This commit is contained in:
Dom Heinzeller 2024-02-19 06:23:09 -07:00 committed by GitHub
parent 0d89083cb5
commit 4d051eb6ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- a/Base/src/cts/CtsApi.hpp 2024-02-10 02:32:48.001444742 +0000
+++ b/Base/src/cts/CtsApi.hpp 2024-02-10 02:33:09.161119010 +0000
@@ -16,6 +16,7 @@
//============================================================================
#include <string>
#include <vector>
+#include <cassert>
#include "CheckPt.hpp"
#include "NodeFwd.hpp"

View File

@ -68,6 +68,9 @@ class Ecflow(CMakePackage):
# Requirement to use the Python3_EXECUTABLE variable
depends_on("cmake@3.16:", type="build")
# https://github.com/JCSDA/spack-stack/issues/1001
patch("ctsapi_cassert.patch", when="@5.11.4 %intel@2021")
@when("@:4.13.0")
def patch(self):
version = str(self.spec["python"].version[:2])