Skip to content

Commit

Permalink
Add a VERSION file and get package version there (#97)
Browse files Browse the repository at this point in the history
* trying ip build

* trying ip build

* trying ip build

* trying ip build

* trying ip build

* more ip work

* added -DGFORTRAN to build, didn't work

* got build to succeed!

* reverted change

* now use VERSION file for version
  • Loading branch information
edwardhartnett authored Mar 29, 2024
1 parent b3ef3ca commit 1215707
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# This is the main CMake build file for the wgrib2 project.
#
# Kyle Gerheiser, Edward Hartnett, Wesley Ebisuzaki
cmake_minimum_required(VERSION 3.15)

cmake_minimum_required(VERSION 3.12)
project(wgrib2 VERSION 3.1.4 LANGUAGES Fortran C)
# Read the current version number from file VERSION.
file(STRINGS "VERSION" pVersion)

# Set up project with version number from VERSION file.
project(wgrib2 VERSION ${pVersion} LANGUAGES Fortran C)

# Handle user build options.
option(USE_NETCDF3 "Use NetCDF-3?" off)
option(USE_NETCDF4 "Use NetCDF-4?" off)
option(USE_HDF5 "Use HDF5?" off)
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.0

0 comments on commit 1215707

Please sign in to comment.