Fpm conditional compilation

· Fortran Lang Discourse · May 23, 2026, 1:48 p.m.
Summary
The blog post discusses an attempt at using conditional compilation in Fortran with the Fortran Package Manager (fpm). The author shares their directory structure, configuration files, and specific Fortran modules, highlighting the process of running different profiles to see results. They encounter issues with old results appearing when changing profiles without cleaning first, providing clear examples of successful compilations and outputs for each profile. The post serves as a practical guide for developers working with fpm and Fortran, showcasing troubleshooting techniques.
AUTHOR