Closed minrk closed 1 year ago
alternative that might be preferable for maintainability would be to import the dolfinx logic for locating ufcx verbatim: https://github.com/FEniCS/dolfinx/blob/8177090c90594291722bd2e8621ea9b1b51988ff/cpp/CMakeLists.txt#L75-L85 https://github.com/FEniCS/dolfinx/blob/main/cpp/cmake/modules/FindUFCx.cmake
Actually, looking at dolfinx linkage to ufcx, I think this means that linking dolfinx will transitively include ufcx, so you don't need to detect it at all. Same might even go for basix? Do you want to build against different ufcx and basix than dolfinx, or is inheriting them okay?
Should be ok to inherit linking from DOLFINx I guess.
avoids Python build dependency for cpp-only installs