Skip to content

Feature: Print result directly to an output file in the *same directory* as the input file #38

@aerosayan

Description

@aerosayan

Hello,

I'm trying to use Fypp with CMake build system, and faced an issue.

Fypp currently can be used as $ fypp src/Core/test.fpp src/Core/test.F90 which is nice, and simple.

But in a build system like CMake, I'm finding it difficult to extract the directory path to where the output file will be written.

This is mainly because I'm not very experienced in CMake's own weird language syntax.

But I'm thinking, shouldn't it be possible for fypp to just output the result in the same directory?

Adding such a feature will probably not be too complicated, and it will be helpful to everyone.

In best case scenario, it would be as easy to use as $fypp --output-in-source-directory --extension F90 src/Core/test.fpp

Where --extension F90 would be the user specified extension used to write the output file src/Core/test.F90

And --output-in-source-directory is a long form example of a command we can give to instruct fypp to write in the same directory as the source input file.

The commands are little bit verbose to show what I mean, and for better user experience, it might be better to shorten and simply them, as per your own wish.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions