Skip to content

Add support for separate module directory and building static and dynamic libs at the same tim #1157

@rweed

Description

@rweed

Description

Please add support for the following:

  1. Option to place modules in some other directory besides ./include. All compilers support a compiler option to do this. ie -module on Intel/Nvidia/AMD AOCC etc and -J on gfortran. I prefer to only put things that are accessed via INCLUDE or #include in the .include directory.
  2. Allow both static and dynamic libraries to be built at the same time. Currently it appears that you have to do two separate builds which requires modifying fpm.toml. I believe that (at least on Linux) fpm builds with -fPIC turned on by default so it should be just a matter (again on Linux) of doing a shared link to the already compiled .o files

Possible Solution

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions