I've building a library with Fortran Package Manager and it's packing up the test code from test/
as part of the final library - everything works okay but I'd prefer to omit the test code from the final build.
Is there a way to do this with Fortran Package Manager? I can't see anything obvious in the documenation for fpm.toml
To disable the automatic discovery of tests targets set the auto-tests entry to false:
[build]
auto-tests = false
See: https://fpm.fortran-lang.org/en/spec/manifest.html#automatic-target-discovery
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With