Using fypp with cmake

I’m trying fypp for the first time, but I’m having problems getting CMake to generate correct dependencies between regular .F90 files and (what would be) generated .F90 files. Does anyone have a working CMake + fypp setup that they could sketch for me?

stdlib has a working cmake script using fypp stdlib/cmake/stdlib.cmake at master · fortran-lang/stdlib · GitHub

I think this was built based on fypp-cmake

1 Like

Thanks for the tip! Comparing mine with that allowed me to pinpoint my stupid error.

1 Like