Closed aradi closed 1 month ago
Thank you for reporting this @aradi. You're stumbling upon the fact that the default auto-executables
option, really has always been searching for a main.f90
rather than "any program definitions", like is reported in the documentation:
EDIT: fpm run
builds and runs it just fine, so yes, there is a bug in fpm install
Description
I have created a generic cookiecutter template for Fortran projects offering various modern build systems as option, among others also fpm. When trying to get the same repository layout for all build systems, which differs slightly from fpm's default layout, I stumbled about a strange behavior upon app installation:
main.f90
, everything works as expected, app installed.myapp.f90
), an error is raised upon installation (<ERROR> Project does not contain any installable targets
)main.f90
, then both apps are installed.Expected Behaviour
The code above should install the program
myapp
into_install/bin
Version of fpm
0.10.1
Platform and Architecture
Linux
Additional Information
My current workaround is to specify
name
andmain
formyapp
in the[[executable]]
section, but in my opinion, it should work without it out of the box.