library MyLib;{$E myext}beginend.
Can't you set the target file name in the project options?Gr.Dirk.
Using something like '$NameOnly($(ProjFile)).cpl' as the target file name would be automatic enough for me...Gr.Dirk.'Edit: I see you already submitted a change request in the bugtracker yesterday... Since it's an FPC request I assume you don't use Lazarus, something that is not really clear in your post here.
I'm not sure where to post this request,I found compiler section only in FPC's bugtracker. Should I post to lazarus's ?
though I don't see a way to put setting into project's template.