Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid2GMT: upgrade supported GMT version and change to bash script #30

Closed
wants to merge 8 commits into from
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ cmake .
make
```

To build program compatible with GMT 5.x or 6.x:
edit CMakeLists.txt to uncomment following line:
```
add_compile_options(-D GMT_VER_5)
```
then:
```
cd src
rm CMakeCache.txt
cmake .
make
```

Thanks to Gilles Celli (European Center for Geodynamics and Seismology) for creating and debugging the NonLinLoc CMake build system.


Expand Down
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ add_compile_options(-fcommon)
# export CFLAGS='-D _GNU_SOURCE'
# before running: rm CMakeCache.txt; cmake .

# 20220921 Sean Ho - Uncomment the following if you want Grid2GMT to generate scripts compatible with gmt 5.x or 6.x
#add_compile_options(-D GMT_VER_5)
#
# Alternatively, in the make environment, set:
# export CFLAGS='-D GMT_VER_5'
# before running: rm CMakeCache.txt; cmake .

# 20211110 AJL - New fix implemented, see https://github.com/alomax/NonLinLoc/issues/7
# This fix probably supersedes the following:
Expand Down
Loading