seacas: update recipe to find faodel (#40239)
Explcitly sets the CMake variables Faodel_INCLUDE_DIRS and Faodel_LIBRARY_DIRS when +faodel. This seems to be needed for recent versions of seacas (seacas@2021-04-02:), but should be safe to do for all versions. For Faodel_INCLUDE_DIRS, it looks like Faodel has header files under $(Faodel_Prefix)/include/faodel, but seacas is not including the "faodel" part in #includes. So add both $(Faodel_Prefix)/include and $(Foadel_Prefix)/include/faodel Co-authored-by: payerle <payerle@users.noreply.github.com>
This commit is contained in:
parent
a042bdfe0b
commit
d82bdb3bf7
@ -304,6 +304,9 @@ class Seacas(CMakePackage):
|
||||
when="@:2023-10-24",
|
||||
)
|
||||
|
||||
# Based on install-tpl.sh script, cereal seems to only be used when faodel enabled
|
||||
depends_on("cereal", when="@2021-04-02: +faodel")
|
||||
|
||||
def setup_run_environment(self, env):
|
||||
env.prepend_path("PYTHONPATH", self.prefix.lib)
|
||||
|
||||
@ -486,6 +489,15 @@ def cmake_args(self):
|
||||
if pkg.lower() in spec:
|
||||
options.append(define(pkg + "_ROOT", spec[pkg.lower()].prefix))
|
||||
|
||||
if "+faodel" in spec:
|
||||
# faodel headers are under $faodel_prefix/include/faodel but seacas
|
||||
# leaves off the faodel part
|
||||
faodel_incdir = spec["faodel"].prefix.include
|
||||
faodel_incdir2 = spec["faodel"].prefix.include.faodel
|
||||
faodel_incdirs = [faodel_incdir, faodel_incdir2]
|
||||
options.append(define("Faodel_INCLUDE_DIRS", ";".join(faodel_incdirs)))
|
||||
options.append(define("Faodel_LIBRARY_DIRS", spec["faodel"].prefix.lib))
|
||||
|
||||
options.append(from_variant("TPL_ENABLE_ADIOS2", "adios2"))
|
||||
if "+adios2" in spec:
|
||||
options.append(define("ADIOS2_ROOT", spec["adios2"].prefix))
|
||||
|
Loading…
Reference in New Issue
Block a user