-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix find_headers to also look for C++ headers and Fortran modules #10798
Conversation
I'd like that better, as there could be more Fortran packages suffering from this. Curious what @adamjstewart and @scheibelp think about that. |
@alalazo is this expected? I would think that the logic of #10623 would add @michaelkuhn could you add the error message here (or point me to the relevant issue)? |
Sorry, I did not capture the error output. esmf failed to build because the compiler could not find |
It's expected in the sense that |
OK thanks I did not realize that. So
That sounds good |
Currently, only C headers are considered, causing build failures for packages depending on, e.g., netcdf-fortran and xerces-c. Additionally, the regex used to look for the include path component did not consider word boundaries, causing false matches.
bdf9e8b
to
a953bca
Compare
I have pushed an updated version that now makes both package-specific changes unnecessary. I missed that xerces-c ships C++ headers the first time around and have now updated find_headers to also look for .hpp headers. |
Thanks! |
This is likely caused by #10623. Currently, only C headers are considered, causing build failures for packages depending on, e.g., netcdf-fortran and xerces-c. Additionally, the regex used to look for the include path component did not consider word boundaries, causing false matches.