Skip to content
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

meson: find an external fortran library and adding one include subdirectory #146

Open
dguibert opened this issue Mar 2, 2022 · 1 comment

Comments

@dguibert
Copy link

dguibert commented Mar 2, 2022

Hi @nordmoen and all,

I want to use an external fortran library within blom, I've tried

lib = fcc.find_library('libname', has_header='lib.mod', required=true)
deps+=lib

kinda works.
but the fortran compiler does not find the module file unless the following is added

includes+=<hard-coded library_path>/include/fortran

How to get this <hard-coded library_path> from lib?

@nordmoen
Copy link
Collaborator

nordmoen commented Mar 2, 2022

Is there a reason that you would use compiler.find_library instead of dependency?

To help more I also need a bit more information. How is the fortran library installed, is it simply a directory or is it a module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants