Skip to content

Commit cfc4ea0

Browse files
committed
get version from meta
1 parent eb2ef63 commit cfc4ea0

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

CITATION

Lines changed: 0 additions & 1 deletion
This file was deleted.

CITATION.cff

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cff-version: 1.2.0
2+
message: "If you use this software, please cite it as below."
3+
authors:
4+
- family-names: Hirsch
5+
given-names: Michael
6+
orcid: https://orcid.org/0000-0002-1637-6526
7+
title: h5fortran
8+
version: 4.2.10
9+
doi: 10.5281/zenodo.3562521
10+
date-released: 2021-11-08

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ if(NOT is_multi_config AND NOT (CMAKE_BUILD_TYPE OR DEFINED ENV{CMAKE_BUILD_TYPE
55
set(CMAKE_BUILD_TYPE Release CACHE STRING "Release default")
66
endif()
77

8-
file(STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/VERSION PROJECT_VERSION
9-
REGEX "^([0-9]+\.[0-9]+\.[0-9]+)" LIMIT_INPUT 16 LENGTH_MAXIMUM 16 LIMIT_COUNT 1)
8+
file(READ ${CMAKE_CURRENT_LIST_DIR}/codemeta.json _j)
9+
string(JSON PROJECT_VERSION GET ${_j} version)
1010

1111
project(h5fortran
1212
LANGUAGES C Fortran

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"downloadUrl": "https://github.com/scivision/h5fortran/releases",
99
"issueTracker": "https://github.com/scivision/h5fortran/issues",
1010
"name": "h5fortran",
11-
"version": "4.1.5",
11+
"version": "4.2.10",
1212
"identifier": "10.5281/zenodo.3757269",
1313
"description": "Lightweight object-oriented HDF5 Fortran interface",
1414
"applicationCategory": "file I/O",

meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project('h5fortran', 'fortran',
2-
meson_version : '>=0.57.0',
3-
version : files('VERSION'),
4-
default_options : ['default_library=static', 'buildtype=release', 'warning_level=3'])
2+
meson_version : '>=0.57.0',
3+
default_options : ['default_library=static', 'buildtype=release', 'warning_level=3']
4+
)
55

66
fc = meson.get_compiler('fortran')
77
os = host_machine.system()

0 commit comments

Comments
 (0)