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

Install location of mod files for generated bindings #32

Open
havogt opened this issue Jul 5, 2019 · 0 comments
Open

Install location of mod files for generated bindings #32

havogt opened this issue Jul 5, 2019 · 0 comments

Comments

@havogt
Copy link
Contributor

havogt commented Jul 5, 2019

When the user has Fortran enabled, the bindings will be build which will produce a .mod file. This module file will be placed in the CMAKE_CURRENT_BINARY_DIR (default).

If the user will try to modify this directory (with property Fortran_MODULE_DIRECTORY) there are currently a few limitations:

  • the include directory attached to the target via BUILD_INTERFACE will still point to CMAKE_CURRENT_BINARY_DIR, i.e. the mod file will not be found (the directory has to be specified manually by the user)
  • we don't specify a directory with INSTALL_INTERFACE as we (the library) cannot know where the user wants to place it...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant