Skip to content

set _FILE_VERSION macro during compilations #936

Description

@rem1776

Is your feature request related to a problem? Please describe.
Basically all of the component codes requires an include path for FMS/include to use the file_version.fh file. This file just sets the current version of FMS so it can be written out by write_file_version in the component code. Currently, it is not being set so will always be 'unknown'.

Describe the solution you'd like
mkmf has an option -g which will automagically set this value to the current git hash, it just needs to be added to the compile scripts when generating the makefile for FMS.

Describe alternatives you've considered
we could also just not write the version numbers, seems kinda unnecessary. Unfortunately, updating all the components to not use it would probably be more effort than its worth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions