Instead of putting the version into CMakeLists.txt this way, we will keep it in a separate file named VERSION.
And when I type "wgrib2" I get the following output:
ed@Pooh-Bah:~/wgrib2/b/wgrib2$ ./wgrib2
wgrib2 v3.1.4beta1 11/2023 Wesley Ebisuzaki, Reinoud Bokhorst, John Howard, Jaakko Hyvätti, Dusan Jovic, Daniel Lee, Kristian Nilssen, Karl Pfeiffer, Pablo Romero, Manfred Schwarb, Gregor Schee, Arlindo da Silva, Niklas Sondell, Sam Trahan, George Trojan, Sergey Varlamov
We have in CMakeLists.txt:
project(wgrib2 VERSION 3.1.4 LANGUAGES Fortran C)
Instead of putting the version into CMakeLists.txt this way, we will keep it in a separate file named VERSION.
And when I type "wgrib2" I get the following output:
This version should match the one used in CMake.