Skip to content

CMake package configuration file for PIO #2011

@SeanBryan51

Description

@SeanBryan51

Hi Parallel IO developers,

We are currently using PIO for several of our models at ACCESS-NRI and are in the process of integrating it with the CABLE land surface model. Our projects use a CMake find module (FindPIO.cmake) to link against the PIO libraries, however we would prefer to avoid using FindPIO.cmake and to instead use CMake package configuration files which are installed with the libraries. This is currently the best practice for library authors and has the benefit that CMake projects can find and import the PIO library targets out of the box via find_package without needing a find module.

I have made some changes to the PIO CMake code which achieves this - I would be grateful to hear your thoughts: main...ACCESS-NRI:ParallelIO:export-cmake-targets. If you think this would be a useful contribution, please let me know and I will open a pull request.

Thanks 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions