AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
518 stars 339 forks source link

Could NOT find HYPRE (missing: HYPRE_LIBRARIES HYPRE_INCLUDE_DIRS) #3815

Closed ztdepztdep closed 5 months ago

ztdepztdep commented 5 months ago

I have installed hypre sucessfully with cmake to the default places. But it still cann't find by the AMReX package. I don't know how to set it . the error is about :

Could NOT find HYPRE (missing: HYPRE_LIBRARIES HYPRE_INCLUDE_DIRS)

I set the system var HYPRE_LIBRARIES HYPRE_INCLUDE_DIRS, but it still doesn't work.

WeiqunZhang commented 5 months ago

Could you try to set HYPRE_ROOT in the environment or cmake command line?

https://cmake.org/cmake/help/latest/variable/PackageName_ROOT.html#variable:%3CPACKAGENAME%3E_ROOT

ztdepztdep commented 5 months ago

Could you try to set HYPRE_ROOT in the environment or cmake command line?

https://cmake.org/cmake/help/latest/variable/PackageName_ROOT.html#variable:%3CPACKAGENAME%3E_ROOT

Great, it works.