yizhang-yiz / fazang

Fazang is a Fortran library for reverse-mode automatic differentiation, inspired by Stan/Math library.
BSD 3-Clause "New" or "Revised" License
40 stars 3 forks source link

Adding CMake build #7

Open Nicholaswogan opened 2 years ago

Nicholaswogan commented 2 years ago

Lots of fortraners use CMake. Would you consider adding a cmake build system?

yizhang-yiz commented 2 years ago

Thanks for the tip @Nicholaswogan . I can add it some time in the future but it's not at the top of the list.

awvwgk commented 2 years ago

CMake projects can safely find installed meson projects, which export a pkg-config file. In principle meson can also generate a config file, which allows CMake projects to find a meson project without having to handle the pkg-config search themselves. If there is interest I can contribute a meson snippet for this purpose.

However, there is of course some “community pressure” to always support CMake as build system well. I have gave in to this and support three build systems in all my projects and so far the CMake one is making the most effort to maintain. Further, I haven't found situations yet where CMake was actually superior to meson (mainly based on experience of packaging for conda-forge).

Just my 2c.