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 🙂
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 usingFindPIO.cmakeand 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 viafind_packagewithout 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 🙂