cgns: patch for include path for 4.5 (#49161)
Co-authored-by: Wouter Deconinck <wdconinc@gmail.com>
This commit is contained in:
parent
40268634b6
commit
d4bd3e298a
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/cgnstools/tkogl/tkogl.c b/src/cgnstools/tkogl/tkogl.c
|
||||||
|
index 506599d..71b4fb8 100644
|
||||||
|
--- a/src/cgnstools/tkogl/tkogl.c
|
||||||
|
+++ b/src/cgnstools/tkogl/tkogl.c
|
||||||
|
@@ -25,7 +25,7 @@
|
||||||
|
#if ! defined(__WIN32__) && ! defined(_WIN32)
|
||||||
|
/* For TkWmAddToColormapWindows. */
|
||||||
|
#define _TKPORT /* Typical installations cannot find tkPort.h. */
|
||||||
|
-#include <tk-private/generic/tkInt.h>
|
||||||
|
+#include <tkInt.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CONST
|
@ -81,6 +81,8 @@ class Cgns(CMakePackage):
|
|||||||
# copied from https://github.com/CGNS/CGNS/pull/757
|
# copied from https://github.com/CGNS/CGNS/pull/757
|
||||||
# (adjusted an include from tk-private/generic/tkInt.h to tkInt.h)
|
# (adjusted an include from tk-private/generic/tkInt.h to tkInt.h)
|
||||||
patch("gcc14.patch", when="@:4.4.0 %gcc@14:")
|
patch("gcc14.patch", when="@:4.4.0 %gcc@14:")
|
||||||
|
# "wrong" include for spack (tk-private) from the patch above made it into the official version
|
||||||
|
patch("cgns-4.5-tk-private.patch", when="@4.5.0")
|
||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
Loading…
Reference in New Issue
Block a user