Index: /issm/trunk-jpl/etc/environment.sh
===================================================================
--- /issm/trunk-jpl/etc/environment.sh	(revision 28160)
+++ /issm/trunk-jpl/etc/environment.sh	(revision 28161)
@@ -203,5 +203,8 @@
 
 	if [[ ${BUILD_TOOL_VER} -ge 15 ]]; then
-		export LDFLAGS="${LDFLAGS} -Wl,-ld_classic"
+		 # Add flag for classic linker only if it has not already been added
+		if [[ -z $(echo $LDFLAGS | /usr/bin/grep "\-Wl,\-ld_classic") ]]; then
+			export LDFLAGS="${LDFLAGS} -Wl,-ld_classic"
+		fi
 	else
 		export LDFLAGS="${LDFLAGS}" # At least set LDFLAGS to null string if it is not already set (used in installation of ISSM and some external packages). Can remove this when issues with new Xcode linker have settled.
Index: /issm/trunk-jpl/externalpackages/boost/install-1.55-pleiades.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/boost/install-1.55-pleiades.sh	(revision 28160)
+++ /issm/trunk-jpl/externalpackages/boost/install-1.55-pleiades.sh	(revision 28161)
@@ -2,9 +2,15 @@
 set -eu
 
-#Note of caution:  stop after boostrap phase, and run 
-#bjam --debug-configuration, to figure out which paths boost is using to include 
-#python. make sure everyone of these paths is covered by python. If not, just make 
-#symlinks in externalpackages/python to what boost is expecting. Ther is NO WAY 
-#to get the boost library to include python support without doing that. 
+# NOTE: Stop after bootstrap phase, and run,
+#
+#	bjam --debug-configuration
+#
+# to figure out which paths Boost is using to include Python. Make sure 
+# every one of these paths is covered by Python. If not, make symlinks in 
+# externalpackages/python to what Boost is expecting (assumes that you are 
+# using copy of Python installed as an external package of ISSM). There is 
+# NO WAY to get the Boost library to include Python support under this 
+# configuration without doing this
+#
 
 export BOOST_ROOT="${ISSM_DIR}/externalpackages/boost"
Index: /issm/trunk-jpl/externalpackages/dakota/configs/6.2/linux/cmake/BuildDakotaCustom.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/configs/6.2/linux/cmake/BuildDakotaCustom.cmake	(revision 28160)
+++ /issm/trunk-jpl/externalpackages/dakota/configs/6.2/linux/cmake/BuildDakotaCustom.cmake	(revision 28161)
@@ -64,9 +64,9 @@
 set( DAKOTA_HAVE_MPI ON
      CACHE BOOL "Build with MPI enabled" FORCE)
-set( MPI_INCLUDE_PATH "$ENV{MPI_INSTALL}/include"
+set( MPI_INCLUDE_PATH "$ENV{MPI_HOME}/include"
      CACHE FILEPATH "Use MPI headers" FORCE)
-set( MPI_LIBRARY "-L$ENV{MPI_INSTALL}/lib -lmpich"
+set( MPI_LIBRARY "-L$ENV{MPI_HOME}/lib -lmpich"
      CACHE FILEPATH "Use MPI library" FORCE)
-set( MPI_EXTRA_LIBRARY "-L$ENV{MPI_INSTALL}/lib -lmpich"
+set( MPI_EXTRA_LIBRARY "-L$ENV{MPI_HOME}/lib -lmpich"
 	  CACHE FILEPATH "Use MPI extra libraries" FORCE)
 
Index: /issm/trunk-jpl/externalpackages/dakota/configs/6.2/mac/cmake/BuildDakotaCustom.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/configs/6.2/mac/cmake/BuildDakotaCustom.cmake	(revision 28160)
+++ /issm/trunk-jpl/externalpackages/dakota/configs/6.2/mac/cmake/BuildDakotaCustom.cmake	(revision 28161)
@@ -64,7 +64,7 @@
 set( DAKOTA_HAVE_MPI ON
      CACHE BOOL "Build with MPI enabled" FORCE)
-set( MPI_INCLUDE_PATH "$ENV{MPI_INSTALL}/include"
+set( MPI_INCLUDE_PATH "$ENV{MPI_HOME}/include"
      CACHE FILEPATH "Use MPI headers" FORCE)
-set( MPI_LIBRARY "-L$ENV{MPI_INSTALL}/lib -lmpich"
+set( MPI_LIBRARY "-L$ENV{MPI_HOME}/lib -lmpich"
      CACHE FILEPATH "Use MPI library" FORCE)
 
Index: /issm/trunk-jpl/externalpackages/dakota/configs/6.2/mac/static/BuildDakotaCustom.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/configs/6.2/mac/static/BuildDakotaCustom.cmake	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/dakota/configs/6.2/mac/static/BuildDakotaCustom.cmake	(revision 28161)
@@ -0,0 +1,95 @@
+##############################################################################
+#
+# Template CMake Configuration File.
+#
+##############################################################################
+# The following CMake variables represent the minimum set of variables
+# that are required to allow Dakota to
+#   * find all prerequisite third party libraries (TPLs)
+#   * configure compiler and MPI options
+#   * set Dakota install path
+#
+# Instructions:
+# 1. Read Dakota/INSTALL - Source Quick Start to use this template file.
+#
+# 2. Uncomment CMake variables below ONLY for values you need to change for
+#    your platform. Edit variables as needed.
+#
+#    For example, if you are using a custom install of Boost, installed in
+#    /home/me/usr/boost, uncomment both CMake Boost variables  and edit
+#    paths:
+#       set(BOOST_ROOT
+#           "/home/me/usr/boost"
+#           CACHE PATH "Use non-standard Boost install" FORCE)
+#       set( Boost_NO_SYSTEM_PATHS TRUE
+#            CACHE BOOL "Supress search paths other than BOOST_ROOT" FORCE)
+#
+#    Save file and exit.
+#
+# 6. Run CMake with script file. At terminal window, type:
+#      $ cmake -C BuildCustom.cmake $DAK_SRC
+#
+#    If you have not followed instructions in INSTALL -Source Quick Start,
+#    you will need to replace BuildCustom.cmake with the actual filename of
+#    this file and $DAK_SRC with the actual path to Dakota source.
+#
+##############################################################################
+
+##############################################################################
+# Set BLAS, LAPACK library paths ONLY if in non-standard locations
+##############################################################################
+set( BLAS_LIBS
+      "$ENV{BLAS_LIBS}"
+      CACHE FILEPATH "Use non-standard BLAS library path" FORCE )
+set( LAPACK_LIBS
+      "$ENV{LAPACK_LIBS}"
+      CACHE FILEPATH "Use non-standard BLAS library path" FORCE )
+
+##############################################################################
+# Set additional compiler options
+# Uncomment and replace <flag> with actual compiler flag, e.g. -xxe4.2
+##############################################################################
+set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS}"
+     CACHE STRING "C Flags my platform" )
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}"
+     CACHE STRING "CXX Flags for my platform" )
+set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}"
+     CACHE STRING "Fortran Flags for my platform" )
+
+##############################################################################
+# Set MPI options
+# Recommended practice is to set DAKOTA_HAVE_MPI and set MPI_CXX_COMPILER
+# to a compiler wrapper.
+##############################################################################
+set( DAKOTA_HAVE_MPI ON
+     CACHE BOOL "Build with MPI enabled" FORCE)
+set( MPI_INCLUDE_PATH "$ENV{MPI_HOME}/include"
+     CACHE FILEPATH "Use MPI headers" FORCE)
+set( MPI_LIBRARY "$ENV{MPI_HOME}/lib/libmpi.a"
+     CACHE FILEPATH "Use MPI library" FORCE)
+
+##############################################################################
+# Set Boost path if CMake cannot find your installed version of Boost or
+# if you have a custom Boost install location.
+##############################################################################
+set(BOOST_ROOT
+    $ENV{BOOST_ROOT}
+    CACHE PATH "Use non-standard Boost install" FORCE)
+set( Boost_NO_SYSTEM_PATHS TRUE
+     CACHE BOOL "Supress search paths other than BOOST_ROOT" FORCE)
+
+##############################################################################
+# Set Trilinos path if you want have a custom Trilinos install location. If
+# not set, the Trilinos package, teuchos, will be build during the Dakota
+# build.
+##############################################################################
+#set( Trilinos_DIR
+#      "path/to/Trilinos/install"
+#      CACHE PATH "Path to installed Trilinos" FORCE )
+
+##############################################################################
+# Customize DAKOTA
+##############################################################################
+set( CMAKE_INSTALL_PREFIX
+     $ENV{DAK_INSTALL}
+     CACHE PATH "Path to Dakota installation" )
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh	(revision 28160)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh	(revision 28161)
@@ -54,5 +54,5 @@
 
 # Copy customized source and configuration files specific to Mac to 'src' directory
-cp configs/${VER}/mac/cmake/BuildDakotaCustom.cmake ${DAK_SRC}/cmake
+cp configs/${VER}/mac/static/cmake/BuildDakotaCustom.cmake ${DAK_SRC}/cmake
 cp configs/${VER}/mac/cmake/DakotaDev.cmake ${DAK_SRC}/cmake
 cp configs/${VER}/mac/cmake/InstallDarwinDylibs.cmake ${DAK_SRC}/cmake
@@ -85,5 +85,5 @@
 	-DBUILD_STATIC_LIBS=ON \
 	-DCMAKE_C_COMPILER=${MPI_HOME}/bin/mpicc \
-	-DCMAKE_C_FLAGS="-fPIC -Wno-error=implicit-function-declaration -w" \
+	-DCMAKE_C_FLAGS="-fPIC -w -Wno-error=implicit-int -Wno-error=implicit-function-declaration" \
 	-DCMAKE_CXX_COMPILER=${MPI_HOME}/bin/mpicxx \
 	-DCMAKE_CXX_FLAGS="-fPIC -fdelayed-template-parsing -w" \
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/linux/cmake/ConfigUser.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/linux/cmake/ConfigUser.cmake	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/linux/cmake/ConfigUser.cmake	(revision 28161)
@@ -0,0 +1,308 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
+# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
+# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+##
+## Section 1: Installation paths
+##
+
+# ============================================================================
+# Basic setup begins here.  All settings are optional.  In most cases, setting
+# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
+# reasonable defaults enabled.  Note: If you need to specify directory names
+# with spaces (e.g., on Windows) then you must put them in quotes.
+# ============================================================================
+
+# Installation path (usually defaults to /usr/local) [auto]:
+set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
+
+# Set install name suffix used for directories and gmt executables
+# [undefined]:
+#set (GMT_INSTALL_NAME_SUFFIX "suffix")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Install convenience links for GMT modules. Disable to install only the main
+# gmt program and access modules as "gmt modulename options" [TRUE]:
+#set (GMT_INSTALL_MODULE_LINKS FALSE)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GDAL TRUE)
+#set (GMT_EXCLUDE_PCRE TRUE)
+#set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set path to GSHHG Shoreline Database [auto]:
+set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
+
+# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
+#set (COPY_GSHHG TRUE)
+
+# Set path to DCW Digital Chart of the World for GMT [auto]:
+#set (DCW_ROOT "dcw-gmt_path")
+
+# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
+#set (COPY_DCW TRUE)
+
+# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
+
+# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
+
+# FOR WINDOWS ONLY
+# Set path to location of Ghostscript binaries (optional install)
+#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
+
+# FOR WINDOWS ONLY
+# Set path to location where the gmtmex is located.
+#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack -L/usr/lib/x86_64-linux-gnu -lgfortran")
+set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas -L/usr/lib/x86_64-linux-gnu -lgfortran")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+# set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+#set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+#set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+#set (DO_ANIMATIONS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
+# that link against the full gmt libs (not just the API; for building codes
+# that only need the GMT API, see the gmt-custom project).
+#set (EXTRA_BUILD_DIRS apidemo)
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
+# [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+##	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)
+#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+if (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+else (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+#set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/mac/cmake/ConfigUser.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/mac/cmake/ConfigUser.cmake	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/mac/cmake/ConfigUser.cmake	(revision 28161)
@@ -0,0 +1,308 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
+# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
+# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+##
+## Section 1: Installation paths
+##
+
+# ============================================================================
+# Basic setup begins here.  All settings are optional.  In most cases, setting
+# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
+# reasonable defaults enabled.  Note: If you need to specify directory names
+# with spaces (e.g., on Windows) then you must put them in quotes.
+# ============================================================================
+
+# Installation path (usually defaults to /usr/local) [auto]:
+set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
+
+# Set install name suffix used for directories and gmt executables
+# [undefined]:
+#set (GMT_INSTALL_NAME_SUFFIX "suffix")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Install convenience links for GMT modules. Disable to install only the main
+# gmt program and access modules as "gmt modulename options" [TRUE]:
+#set (GMT_INSTALL_MODULE_LINKS FALSE)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GDAL TRUE)
+#set (GMT_EXCLUDE_PCRE TRUE)
+#set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set path to GSHHG Shoreline Database [auto]:
+set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
+
+# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
+#set (COPY_GSHHG TRUE)
+
+# Set path to DCW Digital Chart of the World for GMT [auto]:
+#set (DCW_ROOT "dcw-gmt_path")
+
+# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
+#set (COPY_DCW TRUE)
+
+# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
+
+# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
+
+# FOR WINDOWS ONLY
+# Set path to location of Ghostscript binaries (optional install)
+#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
+
+# FOR WINDOWS ONLY
+# Set path to location where the gmtmex is located.
+#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack")
+set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+# set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+#set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+#set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+#set (DO_ANIMATIONS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
+# that link against the full gmt libs (not just the API; for building codes
+# that only need the GMT API, see the gmt-custom project).
+#set (EXTRA_BUILD_DIRS apidemo)
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
+# [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+##	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)
+#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+if (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+else (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+#set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/mac/cmake/modules/ConfigCMake.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/mac/cmake/modules/ConfigCMake.cmake	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/mac/cmake/modules/ConfigCMake.cmake	(revision 28161)
@@ -0,0 +1,250 @@
+#
+#
+# Useful CMake variables.
+#
+# There are five configuration files:
+#
+#   1) "ConfigDefault.cmake" - is version controlled and used to add new default
+#      variables and set defaults for everyone.
+#   2) "ConfigUser.cmake" in the source tree - is not version controlled
+#      (currently listed in .gitignore) and used to override basic default settings on
+#      a per-user basis.
+#   3) "ConfigUser.cmake" in the build tree - is used to override
+#      "ConfigUser.cmake" in the source tree.
+#   4) "ConfigUserAdvanced.cmake" in the source tree - is not version controlled
+#      (currently listed in .gitignore) and used to override advanced default settings on
+#      a per-user basis.
+#   5) "ConfigUserAdvanced.cmake" in the build tree - is used to override
+#      "ConfigUserAdvanced.cmake" in the source tree.
+#
+# NOTE: If you want to change CMake behaviour just for yourself,
+#       copy "ConfigUserTemplate.cmake" to "ConfigUser.cmake" and then edit
+#       "ConfigUser.cmake" for basic settings. For advanced settings,
+#       copy "ConfigUserAdvancedTemplate.cmake" to "ConfigUserAdvanced.cmake" and edit it.
+#       DO NOT EDIT "ConfigDefault.cmake" or the CMake template files.
+#
+include ("${CMAKE_SOURCE_DIR}/cmake/ConfigDefault.cmake")
+
+# A "ConfigUser.cmake" in the source tree overrides the advanced defaults.
+if (EXISTS "${CMAKE_SOURCE_DIR}/cmake/ConfigUser.cmake")
+	include ("${CMAKE_SOURCE_DIR}/cmake/ConfigUser.cmake")
+endif (EXISTS "${CMAKE_SOURCE_DIR}/cmake/ConfigUser.cmake")
+
+# If you've got a 'ConfigUser.cmake' in the build tree then that overrides the
+# one in the source tree.
+if (EXISTS "${CMAKE_BINARY_DIR}/cmake/ConfigUser.cmake")
+	include ("${CMAKE_BINARY_DIR}/cmake/ConfigUser.cmake")
+endif (EXISTS "${CMAKE_BINARY_DIR}/cmake/ConfigUser.cmake")
+
+# A "ConfigUserAdvanced.cmake" in the source tree overrides the advanced defaults.
+if (EXISTS "${CMAKE_SOURCE_DIR}/cmake/ConfigUserAdvanced.cmake")
+	include ("${CMAKE_SOURCE_DIR}/cmake/ConfigUserAdvanced.cmake")
+endif (EXISTS "${CMAKE_SOURCE_DIR}/cmake/ConfigUserAdvanced.cmake")
+
+# If you've got a 'ConfigUserAdvanced.cmake' in the build tree then that overrides the
+# one in the source tree.
+if (EXISTS "${CMAKE_BINARY_DIR}/cmake/ConfigUserAdvanced.cmake")
+	include ("${CMAKE_BINARY_DIR}/cmake/ConfigUserAdvanced.cmake")
+endif (EXISTS "${CMAKE_BINARY_DIR}/cmake/ConfigUserAdvanced.cmake")
+
+###########################################################
+# Do any needed processing of the configuration variables #
+###########################################################
+
+# Set default build type to 'Release'
+if (NOT CMAKE_BUILD_TYPE)
+	set (CMAKE_BUILD_TYPE Release)
+endif (NOT CMAKE_BUILD_TYPE)
+
+# Here we change it to add the git commit hash for non-public releases
+set (GMT_PACKAGE_VERSION_WITH_GIT_REVISION ${GMT_PACKAGE_VERSION})
+
+# Check if it's a git repository or not
+if (EXISTS ${GMT_SOURCE_DIR}/.git)
+	set (HAVE_GIT_VERSION TRUE)
+endif (EXISTS ${GMT_SOURCE_DIR}/.git)
+
+# Add the last git commit hash and date to the package version if this is a non-public release.
+# A non-public release has a FALSE 'GMT_PUBLIC_RELEASE' variable in 'ConfigDefault.cmake'.
+if (GIT_FOUND AND HAVE_GIT_VERSION AND NOT GMT_PUBLIC_RELEASE)
+	# Get the last git commit hash
+	execute_process (
+		COMMAND ${GIT_EXECUTABLE} describe --abbrev=7 --always --dirty
+		WORKING_DIRECTORY ${GMT_SOURCE_DIR}
+		RESULT_VARIABLE GIT_RETURN_CODE
+		OUTPUT_VARIABLE GIT_COMMIT_HASH
+		OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+	if (GIT_RETURN_CODE)
+		message (STATUS "Unable to determine git commit hash for non-public release - ignoring.")
+	else (GIT_RETURN_CODE)
+		if (GIT_COMMIT_HASH)
+			# For non-public release, add the last git commit hash and date
+			execute_process (
+				COMMAND ${GIT_EXECUTABLE} log -1 --date=short --pretty=format:%cd
+				WORKING_DIRECTORY ${GMT_SOURCE_DIR}
+				RESULT_VARIABLE GIT_DATE_RETURN_CODE
+				OUTPUT_VARIABLE GIT_COMMIT_DATE
+				OUTPUT_STRIP_TRAILING_WHITESPACE)
+			string(REPLACE "-" "." GIT_COMMIT_DATE "${GIT_COMMIT_DATE}")
+			set (GMT_PACKAGE_VERSION_WITH_GIT_REVISION "${GMT_PACKAGE_VERSION}_${GIT_COMMIT_HASH}_${GIT_COMMIT_DATE}")
+		endif (GIT_COMMIT_HASH)
+	endif (GIT_RETURN_CODE)
+endif (GIT_FOUND AND HAVE_GIT_VERSION AND NOT GMT_PUBLIC_RELEASE)
+
+# apply license restrictions
+if (LICENSE_RESTRICTED) # on
+	if (LICENSE_RESTRICTED STREQUAL GPL)
+		# restrict to GPL
+	elseif (LICENSE_RESTRICTED STREQUAL LGPL)
+		# restrict to LGPL
+	else (LICENSE_RESTRICTED STREQUAL GPL)
+		# unknown license
+		message (WARNING "unknown license: ${LICENSE_RESTRICTED}")
+	endif (LICENSE_RESTRICTED STREQUAL GPL)
+	# restrictions that apply to any of the above licenses
+else (LICENSE_RESTRICTED) # off
+	# no restrictions at all
+endif (LICENSE_RESTRICTED)
+
+# reset list of extra license files
+set (GMT_EXTRA_LICENSE_FILES)
+
+# location of GNU license files
+set (COPYING_GPL ${GMT_SOURCE_DIR}/COPYINGv3)
+set (COPYING_LGPL ${GMT_SOURCE_DIR}/COPYING.LESSERv3)
+
+# GMT paths used in the code
+if (NOT GMT_DATADIR)
+	# do not reset user setting
+	if (GMT_INSTALL_TRADITIONAL_FOLDERNAMES)
+		set (GMT_DATADIR "share")
+	else(GMT_INSTALL_TRADITIONAL_FOLDERNAMES)
+		set (GMT_DATADIR "share/gmt${GMT_INSTALL_NAME_SUFFIX}")
+	endif(GMT_INSTALL_TRADITIONAL_FOLDERNAMES)
+endif (NOT GMT_DATADIR)
+
+# Install path GMT_DOCDIR
+if (NOT GMT_DOCDIR)
+	# do not reset user setting
+	if (GMT_INSTALL_TRADITIONAL_FOLDERNAMES)
+		set (GMT_DOCDIR "${GMT_DATADIR}/doc")
+	else(GMT_INSTALL_TRADITIONAL_FOLDERNAMES)
+		set (GMT_DOCDIR "share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}")
+	endif(GMT_INSTALL_TRADITIONAL_FOLDERNAMES)
+endif (NOT GMT_DOCDIR)
+
+# Install path GMT_MANDIR
+if (NOT GMT_MANDIR)
+	# do not reset user setting
+	if (GMT_INSTALL_TRADITIONAL_FOLDERNAMES)
+		set (GMT_MANDIR "${GMT_DATADIR}/man")
+	else(GMT_INSTALL_TRADITIONAL_FOLDERNAMES)
+		set (GMT_MANDIR "${GMT_DOCDIR}/man")
+	endif(GMT_INSTALL_TRADITIONAL_FOLDERNAMES)
+endif (NOT GMT_MANDIR)
+
+# Install path for GMT binaries, headers and libraries
+include (GNUInstallDirs) # defines CMAKE_INSTALL_LIBDIR (lib/lib64)
+if (NOT GMT_LIBDIR)
+	set (GMT_LIBDIR ${CMAKE_INSTALL_LIBDIR})
+endif(NOT GMT_LIBDIR)
+
+if (NOT GMT_BINDIR)
+	set (GMT_BINDIR bin)
+endif(NOT GMT_BINDIR)
+
+if (NOT GMT_INCLUDEDIR)
+	set (GMT_INCLUDEDIR include/gmt${GMT_INSTALL_NAME_SUFFIX})
+endif(NOT GMT_INCLUDEDIR)
+
+if (GMT_DATA_URL) # Backwards compatibility with old ConfigUser.cmake files
+	message (WARNING "CMake variable GMT_DATA_URL is deprecated and will be removed in the future releases. Use GMT_DATA_SERVER instead.")
+	set (GMT_DATA_SERVER ${GMT_DATA_URL})
+endif (GMT_DATA_URL)
+
+# use, i.e. don't skip the full RPATH for the build tree
+set (CMAKE_SKIP_BUILD_RPATH FALSE)
+
+# when building, don't use the install RPATH already
+# (but later on when installing)
+set (CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
+
+# set the RPATH to be used when installing
+if (NOT DEFINED GMT_INSTALL_RELOCATABLE)
+	set (GMT_INSTALL_RELOCATABLE FALSE)
+endif (NOT DEFINED GMT_INSTALL_RELOCATABLE)
+if (GMT_INSTALL_RELOCATABLE)
+	# make executables relocatable on supported platforms (relative RPATH)
+	if (UNIX AND NOT CYGWIN)
+		# find relative libdir from executable dir
+		file (RELATIVE_PATH _rpath /${GMT_BINDIR} /${GMT_LIBDIR})
+		# remove trailing /
+		string (REGEX REPLACE "/$" "" _rpath "${_rpath}")
+		if (APPLE)
+			# relative RPATH on osx
+			# CMP0042: CMake 3.0: MACOSX_RPATH is enabled by default
+			set (CMAKE_MACOSX_RPATH ON)
+			set (CMAKE_INSTALL_NAME_DIR @rpath)
+			set (CMAKE_INSTALL_RPATH "@rpath;@executable_path/${_rpath};${LIBGFORTRAN_ROOT}")
+		else (APPLE)
+			# relative RPATH on Linux, Solaris, etc.
+			set (CMAKE_INSTALL_RPATH "\$ORIGIN/${_rpath}")
+		endif (APPLE)
+	endif (UNIX AND NOT CYGWIN)
+else (GMT_INSTALL_RELOCATABLE)
+	# set absolute RPATH
+	if (APPLE)
+		# CMP0042: CMake 3.0: MACOSX_RPATH is enabled by default
+		set (CMAKE_MACOSX_RPATH OFF)
+		set (CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${GMT_LIBDIR}")
+	else (APPLE)
+		# the RPATH to be used when installing, but only if it's not a
+		# system directory
+		list (FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
+			"${CMAKE_INSTALL_PREFIX}/${GMT_LIBDIR}" isSystemDir)
+		if ("${isSystemDir}" STREQUAL "-1")
+			set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${GMT_LIBDIR}")
+		endif ("${isSystemDir}" STREQUAL "-1")
+	endif (APPLE)
+endif (GMT_INSTALL_RELOCATABLE)
+
+# add the automatically determined parts of the RPATH
+# which point to directories outside the build tree to the install RPATH
+set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
+
+# When running examples/tests with CTest (out-of-source) we need support for
+# running GMT programs from within ${GMT_BINARY_DIR}:
+if (DO_EXAMPLES OR DO_TESTS AND NOT SUPPORT_EXEC_IN_BINARY_DIR)
+	message (WARNING "Enabling SUPPORT_EXEC_IN_BINARY_DIR (required for "
+	"testing). Please disable testing on release builds.")
+	set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+endif (DO_EXAMPLES OR DO_TESTS AND NOT SUPPORT_EXEC_IN_BINARY_DIR)
+
+# Some tests are known to fail, and can be excluded from the test by adding
+# the comment "# GMT_KNOWN_FAILURE".
+if (NOT DEFINED GMT_ENABLE_KNOWN2FAIL)
+	set (GMT_ENABLE_KNOWN2FAIL ON)
+endif (NOT DEFINED GMT_ENABLE_KNOWN2FAIL)
+
+# Make GNU, Intel, Clang and AppleClang compilers default to C99
+if (CMAKE_C_COMPILER_ID MATCHES "(GNU|Intel|Clang)" AND NOT CMAKE_C_FLAGS MATCHES "-std=")
+	set (CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}")
+endif ()
+
+# Suppress MSVC deprecation and security warnings
+if (MSVC)
+    set (CMAKE_C_FLAGS "/D_CRT_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_DEPRECATE ${CMAKE_C_FLAGS}")
+    set (CMAKE_C_FLAGS "/D_CRT_NONSTDC_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE ${CMAKE_C_FLAGS}")
+endif (MSVC)
+
+# Handle the special developer option GMT_DOCS_DEPEND_ON_GMT
+# Normally this is ON.
+if (NOT DEFINED GMT_DOCS_DEPEND_ON_GMT)
+	set (GMT_DOCS_DEPEND_ON_GMT TRUE)
+endif (NOT DEFINED GMT_DOCS_DEPEND_ON_GMT)
+if (GMT_DOCS_DEPEND_ON_GMT)
+	add_custom_target (gmt_for_img_convert DEPENDS gmt)
+else (GMT_DOCS_DEPEND_ON_GMT)
+	add_custom_target (gmt_for_img_convert)
+endif (GMT_DOCS_DEPEND_ON_GMT)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGDAL.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGDAL.cmake	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGDAL.cmake	(revision 28161)
@@ -0,0 +1,189 @@
+#
+#
+# Locate gdal
+#
+# This module accepts the following environment variables:
+#
+#    GDAL_DIR or GDAL_ROOT - Specify the location of GDAL
+#
+# This module defines the following CMake variables:
+#
+#    GDAL_FOUND - True if libgdal is found
+#    GDAL_LIBRARY - A variable pointing to the GDAL library
+#    GDAL_INCLUDE_DIR - Where to find the headers
+
+#=============================================================================
+# Copyright 2007-2009 Kitware, Inc.
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See COPYING-CMAKE-SCRIPTS for more information.
+#=============================================================================
+# Note: this file is not an exact copy of the original file from Kitware.
+#       It has been modified for the needs of GMT.
+
+#
+# $GDAL_DIR is an environment variable that would
+# correspond to the ./configure --prefix=$GDAL_DIR
+# used in building gdal.
+#
+# Created by Eric Wing. I'm not a gdal user, but OpenSceneGraph uses it
+# for osgTerrain so I whipped this module together for completeness.
+# I actually don't know the conventions or where files are typically
+# placed in distros.
+# Any real gdal users are encouraged to correct this (but please don't
+# break the OS X framework stuff when doing so which is what usually seems
+# to happen).
+
+# This makes the presumption that you are include gdal.h like
+#
+#include "gdal.h"
+
+if (DEFINED GDAL_ROOT AND NOT GDAL_ROOT)
+	set (GDAL_LIBRARY "" CACHE INTERNAL "")
+	set (GDAL_INCLUDE_DIR "" CACHE INTERNAL "")
+	return()
+endif (DEFINED GDAL_ROOT AND NOT GDAL_ROOT)
+
+if (UNIX AND NOT GDAL_FOUND)
+	# Use gdal-config to obtain the library version (this should hopefully
+	# allow us to -lgdal1.x.y where x.y are correct version)
+	# For some reason, libgdal development packages do not contain
+	# libgdal.so...
+	find_program (GDAL_CONFIG gdal-config
+		HINTS
+		${GDAL_DIR}
+		${GDAL_ROOT}
+		$ENV{GDAL_DIR}
+		$ENV{GDAL_ROOT}
+		PATH_SUFFIXES bin
+		PATHS
+		/sw # Fink
+		/opt/local # DarwinPorts
+		/opt/csw # Blastwave
+		/opt
+		/usr/local
+	)
+
+	if (GDAL_CONFIG)
+		execute_process (COMMAND ${GDAL_CONFIG} --cflags
+			ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
+			OUTPUT_VARIABLE GDAL_CONFIG_CFLAGS)
+		if (GDAL_CONFIG_CFLAGS)
+			string (REGEX MATCHALL "-I[^ ]+" _gdal_dashI ${GDAL_CONFIG_CFLAGS})
+			string (REGEX REPLACE "-I" "" _gdal_includepath "${_gdal_dashI}")
+			string (REGEX REPLACE "-I[^ ]+" "" _gdal_cflags_other ${GDAL_CONFIG_CFLAGS})
+		endif (GDAL_CONFIG_CFLAGS)
+		execute_process (COMMAND ${GDAL_CONFIG} --libs
+			ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
+			OUTPUT_VARIABLE GDAL_CONFIG_LIBS)
+		if (GDAL_CONFIG_LIBS)
+			string (REGEX MATCHALL "-l[^ ]+" _gdal_dashl ${GDAL_CONFIG_LIBS})
+			string (REGEX REPLACE "-l" "" _gdal_lib "${_gdal_dashl}")
+			string (REGEX MATCHALL "-L[^ ]+" _gdal_dashL ${GDAL_CONFIG_LIBS})
+			string (REGEX REPLACE "-L" "" _gdal_libpath "${_gdal_dashL}")
+		endif (GDAL_CONFIG_LIBS)
+		execute_process (COMMAND ${GDAL_CONFIG} --dep-libs
+			ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
+			OUTPUT_VARIABLE GDAL_CONFIG_DEP_LIBS)
+		if (GDAL_CONFIG_DEP_LIBS)
+			string (REGEX MATCHALL "-l[^ ]+" _gdal_dashl ${GDAL_CONFIG_DEP_LIBS})
+			string (REGEX REPLACE "-l" "" _gdal_dep_lib "${_gdal_dashl}")
+			string (REGEX MATCHALL "-L[^ ]+" _gdal_dashL ${GDAL_CONFIG_DEP_LIBS})
+			string (REGEX REPLACE "-L" "" _gdal_dep_libpath "${_gdal_dashL}")
+		endif (GDAL_CONFIG_DEP_LIBS)
+	endif (GDAL_CONFIG)
+	if (_gdal_dep_lib)
+		list (REMOVE_DUPLICATES _gdal_dep_lib)
+		list (REMOVE_ITEM _gdal_dep_lib gdal)
+	endif (_gdal_dep_lib)
+endif (UNIX AND NOT GDAL_FOUND)
+
+find_path (GDAL_INCLUDE_DIR gdal.h
+	HINTS
+	${_gdal_includepath}
+	${GDAL_DIR}
+	${GDAL_ROOT}
+	$ENV{GDAL_DIR}
+	$ENV{GDAL_ROOT}
+	PATH_SUFFIXES
+	include/gdal
+	include/GDAL
+	include
+	PATHS
+	~/Library/Frameworks/gdal.framework/Headers
+	/Library/Frameworks/gdal.framework/Headers
+	/sw # Fink
+	/opt/local # DarwinPorts
+	/opt/csw # Blastwave
+	/opt
+	/usr/local
+)
+
+find_library (GDAL_LIBRARY
+	NAMES ${_gdal_lib} gdal gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
+	HINTS
+	${GDAL_DIR}
+	${GDAL_ROOT}
+	$ENV{GDAL_DIR}
+	$ENV{GDAL_ROOT}
+	${_gdal_libpath}
+	PATH_SUFFIXES lib
+	PATHS
+	~/Library/Frameworks/gdal.framework
+	/Library/Frameworks/gdal.framework
+	/sw # Fink
+	/opt/local # DarwinPorts
+	/opt/csw # Blastwave
+	/opt
+	/usr/local
+)
+
+# find all libs that gdal-config --dep-libs reports
+foreach (_extralib ${_gdal_dep_lib})
+	find_library (_found_lib_${_extralib}
+		NAMES ${_extralib}
+		HINTS
+		${HDF5_ROOT}
+		$ENV{HDF5_ROOT}
+		${NETCDF_ROOT}
+		$ENV{NETCDF_ROOT}
+		${ZLIB_ROOT}
+		$ENV{ZLIB_ROOT}
+		${CURL_ROOT}
+		$ENV{CURL_ROOT}
+		PATH_SUFFIXES lib
+		PATHS 
+		${_gdal_dep_libpath}
+	)
+	list (APPEND GDAL_LIBRARY ${_found_lib_${_extralib}})
+endforeach (_extralib)
+
+# append manually-supplied libs
+# find all manually-supplied libs
+if (GDAL_EXTRA_LIBS)
+	# Ensure -l is preceded by whitespace to not match
+	# '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
+	string (REGEX MATCHALL "(^| )-l[^ ]+" _gdal_extra_lib_dashl ${GDAL_EXTRA_LIBS})
+	string (REGEX REPLACE "(^| )-l" "" _gdal_extra_lib "${_gdal_extra_lib_dashl}")
+	string (REGEX MATCHALL "(^| )-L[^ ]+" _gdal_extra_lib_dashL ${GDAL_EXTRA_LIBS})
+	string (REGEX REPLACE "(^| )-L" "" _gdal_extra_libpath "${_gdal_extra_lib_dashL}")
+	foreach (_extralib ${_gdal_extra_lib})
+		find_library (_found_lib_${_extralib}
+			NAMES ${_extralib}
+			PATH_SUFFIXES lib
+			PATHS 
+			${_gdal_extra_libpath}
+		)
+		list (APPEND GDAL_LIBRARY ${_found_lib_${_extralib}})
+	endforeach (_extralib)
+endif (GDAL_EXTRA_LIBS)
+
+include (FindPackageHandleStandardArgs)
+find_package_handle_standard_args (GDAL DEFAULT_MSG GDAL_LIBRARY GDAL_INCLUDE_DIR)
+
+set (GDAL_LIBRARIES ${GDAL_LIBRARY})
+set (GDAL_INCLUDE_DIRS ${GDAL_INCLUDE_DIR})
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGSHHG.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGSHHG.cmake	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGSHHG.cmake	(revision 28161)
@@ -0,0 +1,95 @@
+#
+#
+# Locate GSHHG shorelines
+#
+# This module accepts the following environment variables:
+#
+#  GSHHG_ROOT, GSHHGDIR - Specify the location of GSHHG
+#
+# This module defines the following CMake variables:
+#
+#    GSHHG_FOUND        - True if GSHHG is found
+#    GSHHG_PATH         - A variable pointing to the GSHHG path
+#    GSHHG_VERSION      - String of the GSHHG version found
+#    GSHHG_MIN_REQUIRED_VERSION_{MAJOR, MINOR, PATCH}
+#                       - Major, minor, and patch version required
+
+# get GSHHG path
+find_path (GSHHG_PATH
+	NAMES binned_GSHHS_c.nc
+	HINTS ${GSHHG_ROOT} $ENV{GSHHG_ROOT} $ENV{GSHHGDIR}
+	PATH_SUFFIXES
+	gmt-gshhg
+	gshhg
+	gshhg-gmt
+	gshhg-gmt-nc4
+	share/gmt/gshhg
+	share/gmt-gshhg
+	share/gshhg
+	share/gshhg-gmt
+	share/gshhg-gmt-nc4
+	PATHS
+	${CMAKE_SOURCE_DIR}
+	/sw # Fink
+	/opt/local # DarwinPorts
+	/opt/csw # Blastwave
+	/opt
+	/usr/local
+	DOC "Global Self-consistent Hierarchical High-resolution Geography"
+)
+
+# get GSHHG file
+if (GSHHG_PATH)
+	find_file (_GSHHG_FILE
+		NAMES binned_GSHHS_c.nc
+		HINTS ${GSHHG_PATH})
+endif (GSHHG_PATH)
+
+# The minimum required GSHHG version
+set (GSHHG_MIN_REQUIRED_VERSION_MAJOR 2 CACHE INTERNAL "GSHHG required version major")
+set (GSHHG_MIN_REQUIRED_VERSION_MINOR 2 CACHE INTERNAL "GSHHG required version minor")
+set (GSHHG_MIN_REQUIRED_VERSION_PATCH 0 CACHE INTERNAL "GSHHG required version patch")
+set (GSHHG_MIN_REQUIRED_VERSION
+	"${GSHHG_MIN_REQUIRED_VERSION_MAJOR}.${GSHHG_MIN_REQUIRED_VERSION_MINOR}.${GSHHG_MIN_REQUIRED_VERSION_PATCH}")
+
+# Temporary hack to bypass failure of compilation of code to find GSHHG
+set (GSHHG_FOUND TRUE)
+set (GSHHG_VERSION "2.3.4" CACHE INTERNAL "GSHHG version")
+
+# check GSHHG version
+if (_GSHHG_FILE AND NOT GSHHG_FOUND)
+	try_run (_EXIT_GSHHG_VERSION _COMPILED_GSHHG_VERSION
+		${CMAKE_BINARY_DIR}/CMakeTmp
+		${CMAKE_CURRENT_SOURCE_DIR}/gshhg_version.c
+		CMAKE_FLAGS
+		-DINCLUDE_DIRECTORIES=${NETCDF_INCLUDE_DIR}
+		-DLINK_LIBRARIES=${NETCDF_LIBRARIES}
+		COMPILE_DEFINITIONS -DSTANDALONE
+		COMPILE_OUTPUT_VARIABLE _GSHHG_VERSION_COMPILE_OUT
+		RUN_OUTPUT_VARIABLE _GSHHG_VERSION_STRING
+		ARGS \"${_GSHHG_FILE}\" ${GSHHG_MIN_REQUIRED_VERSION})
+
+	if (NOT _COMPILED_GSHHG_VERSION OR _EXIT_GSHHG_VERSION STREQUAL FAILED_TO_RUN)
+		message(FATAL_ERROR "Cannot determine GSHHG version:\n
+		${_GSHHG_VERSION_COMPILE_OUT}\n
+		${_GSHHG_VERSION_STRING}")
+	endif ()
+
+	# check version string
+	if (_COMPILED_GSHHG_VERSION)
+		# strip whitespace
+		string (STRIP ${_GSHHG_VERSION_STRING} GSHHG_VERSION)
+		if (_EXIT_GSHHG_VERSION EQUAL 0)
+			# found GSHHG of required version or higher
+			set (GSHHG_VERSION ${GSHHG_VERSION} CACHE INTERNAL "GSHHG version")
+		elseif (_EXIT_GSHHG_VERSION EQUAL -1)
+			# found GSHHG but version is too old
+			message (WARNING "GSHHG found but it is too old (${GSHHG_VERSION}). "
+				"Need at least ${GSHHG_MIN_REQUIRED_VERSION}.")
+		endif (_EXIT_GSHHG_VERSION EQUAL 0)
+	endif (_COMPILED_GSHHG_VERSION)
+endif (_GSHHG_FILE AND NOT GSHHG_FOUND)
+
+include (FindPackageHandleStandardArgs)
+find_package_handle_standard_args (GSHHG DEFAULT_MSG
+	GSHHG_PATH GSHHG_VERSION)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindNETCDF.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindNETCDF.cmake	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindNETCDF.cmake	(revision 28161)
@@ -0,0 +1,181 @@
+#
+#
+# Locate netcdf
+#
+# This module accepts the following environment variables:
+#
+#    NETCDF_DIR or NETCDF_ROOT - Specify the location of NetCDF
+#
+# This module defines the following CMake variables:
+#
+#    NETCDF_FOUND - True if libnetcdf is found
+#    NETCDF_LIBRARY - A variable pointing to the NetCDF library
+#    NETCDF_INCLUDE_DIR - Where to find the headers
+#    NETCDF_INCLUDE_DIRS - Where to find the headers
+#    NETCDF_DEFINITIONS - Extra compiler flags
+
+#=============================================================================
+# Inspired by FindGDAL
+#
+# Distributed under the OSI-approved bsd license (the "License")
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See COPYING-CMAKE-SCRIPTS for more information.
+#=============================================================================
+
+# This makes the presumption that you are include netcdf.h like
+#
+#include "netcdf.h"
+
+if (UNIX AND NOT NETCDF_FOUND)
+	# Use nc-config to obtain the libraries
+	find_program (NETCDF_CONFIG nc-config
+		HINTS
+		${NETCDF_DIR}
+		${NETCDF_ROOT}
+		$ENV{NETCDF_DIR}
+		$ENV{NETCDF_ROOT}
+		PATH_SUFFIXES bin
+		PATHS
+		/sw # Fink
+		/opt/local # DarwinPorts
+		/opt/csw # Blastwave
+		/opt
+		/usr/local
+	)
+
+	if (NETCDF_CONFIG)
+		execute_process (COMMAND ${NETCDF_CONFIG} --cflags
+			ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
+			OUTPUT_VARIABLE NETCDF_CONFIG_CFLAGS)
+		if (NETCDF_CONFIG_CFLAGS)
+			string (REGEX MATCHALL "(^| )-I[^ ]+" _netcdf_dashI ${NETCDF_CONFIG_CFLAGS})
+			string (REGEX REPLACE "(^| )-I" "" _netcdf_includepath "${_netcdf_dashI}")
+			string (REGEX REPLACE "(^| )-I[^ ]+" "" _netcdf_cflags_other ${NETCDF_CONFIG_CFLAGS})
+		endif (NETCDF_CONFIG_CFLAGS)
+		execute_process (COMMAND ${NETCDF_CONFIG} --libs
+			ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
+			OUTPUT_VARIABLE NETCDF_CONFIG_LIBS)
+		if (NETCDF_CONFIG_LIBS)
+			# Ensure -l is preceded by whitespace to not match
+			# '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
+			string (REGEX MATCHALL "(^| )-l[^ ]+" _netcdf_dashl ${NETCDF_CONFIG_LIBS})
+			string (REGEX REPLACE "(^| )-l" "" _netcdf_lib "${_netcdf_dashl}")
+			string (REGEX MATCHALL "(^| )-L[^ ]+" _netcdf_dashL ${NETCDF_CONFIG_LIBS})
+			string (REGEX REPLACE "(^| )-L" "" _netcdf_libpath "${_netcdf_dashL}")
+		endif (NETCDF_CONFIG_LIBS)
+	endif (NETCDF_CONFIG)
+	if (_netcdf_lib)
+		list (REMOVE_DUPLICATES _netcdf_lib)
+		list (REMOVE_ITEM _netcdf_lib netcdf)
+	endif (_netcdf_lib)
+endif (UNIX AND NOT NETCDF_FOUND)
+
+find_path (NETCDF_INCLUDE_DIR netcdf.h
+	HINTS
+	${_netcdf_includepath}
+	${NETCDF_DIR}
+	${NETCDF_ROOT}
+	$ENV{NETCDF_DIR}
+	$ENV{NETCDF_ROOT}
+	PATH_SUFFIXES
+	include/netcdf
+	include/netcdf-4
+	include/netcdf-3
+	include
+	PATHS
+	/sw # Fink
+	/opt/local # DarwinPorts
+	/opt/csw # Blastwave
+	/opt
+	/usr/local
+)
+
+find_library (NETCDF_LIBRARY
+	NAMES netcdf
+	HINTS
+	${_netcdf_libpath}
+	${NETCDF_DIR}
+	${NETCDF_ROOT}
+	$ENV{NETCDF_DIR}
+	$ENV{NETCDF_ROOT}
+	PATH_SUFFIXES lib
+	PATHS
+	/sw
+	/opt/local
+	/opt/csw
+	/opt
+	/usr/local
+)
+
+# find all libs that nc-config reports
+foreach (_extralib ${_netcdf_lib})
+	find_library (_found_lib_${_extralib}
+		NAMES ${_extralib}
+		HINTS
+		${HDF5_ROOT}
+		$ENV{HDF5_ROOT}
+		${ZLIB_ROOT}
+		$ENV{ZLIB_ROOT}
+		${CURL_ROOT}
+		$ENV{CURL_ROOT}
+		PATH_SUFFIXES lib
+		PATHS 
+		${_netcdf_libpath}
+	)
+	list (APPEND NETCDF_LIBRARY ${_found_lib_${_extralib}})
+endforeach (_extralib)
+
+# find all manually-supplied libs
+if (NETCDF_EXTRA_LIBS)
+	# Ensure -l is preceded by whitespace to not match
+	# '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
+	string (REGEX MATCHALL "(^| )-l[^ ]+" _netcdf_extra_lib_dashl ${NETCDF_EXTRA_LIBS})
+	string (REGEX REPLACE "(^| )-l" "" _netcdf_extra_shared_lib "${_netcdf_extra_lib_dashl}")
+	string (REGEX MATCHALL "(^| )-L[^ ]+" _netcdf_extra_lib_dashL ${NETCDF_EXTRA_LIBS})
+	string (REGEX REPLACE "(^| )-L" "" _netcdf_extra_libpath "${_netcdf_extra_lib_dashL}")
+	foreach (_extralib ${_netcdf_extra_shared_lib})
+		find_library (_found_lib_${_extralib}
+			NAMES ${_extralib}
+			PATH_SUFFIXES lib
+			PATHS 
+			${_netcdf_extra_libpath}
+		)
+		list (APPEND NETCDF_LIBRARY ${_found_lib_${_extralib}})
+	endforeach (_extralib)
+	# Retrieve static library names
+	string(REGEX MATCHALL "[a-zA-Z0-9]+\\.a" _netcdf_extra_static_lib "${NETCDF_EXTRA_LIBS}")
+	foreach (_extralib ${_netcdf_extra_static_lib})
+		find_library (_found_lib_${_extralib}
+			NAMES ${_extralib}
+			PATH_SUFFIXES lib
+			PATHS 
+			${_netcdf_extra_libpath}
+		)
+		list (APPEND NETCDF_LIBRARY ${_found_lib_${_extralib}})
+	endforeach (_extralib)
+endif (NETCDF_EXTRA_LIBS)
+
+if (NETCDF_LIBRARY AND NETCDF_INCLUDE_DIR AND NOT HAVE_NETCDF4)
+	# Ensure that NetCDF with version 4 extensions is installed
+	include (CMakePushCheckState)
+	include (CheckSymbolExists)
+	cmake_push_check_state() # save state of CMAKE_REQUIRED_*
+	set (CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${NETCDF_INCLUDE_DIR})
+	set (CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${NETCDF_LIBRARY})
+	set (HAVE_NETCDF4 HAVE_NETCDF4) # to force check_symbol_exists again
+	check_symbol_exists (nc_def_var_deflate netcdf.h HAVE_NETCDF4)
+	cmake_pop_check_state() # restore state of CMAKE_REQUIRED_*
+	if (NOT HAVE_NETCDF4)
+		message (SEND_ERROR "Library found but netCDF-4/HDF5 format unsupported. Do not configure netCDF-4 with --disable-netcdf-4.")
+	endif (NOT HAVE_NETCDF4)
+endif (NETCDF_LIBRARY AND NETCDF_INCLUDE_DIR AND NOT HAVE_NETCDF4)
+
+include (FindPackageHandleStandardArgs)
+find_package_handle_standard_args (NETCDF
+	DEFAULT_MSG NETCDF_LIBRARY NETCDF_INCLUDE_DIR HAVE_NETCDF4)
+
+set (NETCDF_LIBRARIES ${NETCDF_LIBRARY})
+set (NETCDF_INCLUDE_DIRS ${NETCDF_INCLUDE_DIR})
+string (REPLACE "-DNDEBUG" "" NETCDF_DEFINITIONS "${_netcdf_cflags_other}")
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/linux/cmake/ConfigUser.static.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/linux/cmake/ConfigUser.static.cmake	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/linux/cmake/ConfigUser.static.cmake	(revision 28161)
@@ -0,0 +1,308 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
+# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
+# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+##
+## Section 1: Installation paths
+##
+
+# ============================================================================
+# Basic setup begins here.  All settings are optional.  In most cases, setting
+# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
+# reasonable defaults enabled.  Note: If you need to specify directory names
+# with spaces (e.g., on Windows) then you must put them in quotes.
+# ============================================================================
+
+# Installation path (usually defaults to /usr/local) [auto]:
+set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
+
+# Set install name suffix used for directories and gmt executables
+# [undefined]:
+#set (GMT_INSTALL_NAME_SUFFIX "suffix")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Install convenience links for GMT modules. Disable to install only the main
+# gmt program and access modules as "gmt modulename options" [TRUE]:
+#set (GMT_INSTALL_MODULE_LINKS FALSE)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GDAL TRUE)
+set (GMT_EXCLUDE_PCRE TRUE)
+set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set path to GSHHG Shoreline Database [auto]:
+set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
+
+# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
+set (COPY_GSHHG TRUE)
+
+# Set path to DCW Digital Chart of the World for GMT [auto]:
+#set (DCW_ROOT "dcw-gmt_path")
+
+# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
+#set (COPY_DCW TRUE)
+
+# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
+
+# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
+
+# FOR WINDOWS ONLY
+# Set path to location of Ghostscript binaries (optional install)
+#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
+
+# FOR WINDOWS ONLY
+# Set path to location where the gmtmex is located.
+#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack -L/usr/lib/x86_64-linux-gnu -lgfortran")
+set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas -L/usr/lib/x86_64-linux-gnu -lgfortran")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+# set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+#set (DO_ANIMATIONS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
+# that link against the full gmt libs (not just the API; for building codes
+# that only need the GMT API, see the gmt-custom project).
+#set (EXTRA_BUILD_DIRS apidemo)
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
+# [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+##	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)
+#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+if (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+else (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/mac/cmake/ConfigUser.static.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/mac/cmake/ConfigUser.static.cmake	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/mac/cmake/ConfigUser.static.cmake	(revision 28161)
@@ -0,0 +1,299 @@
+#
+# Copyright (c) 1991-2022 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# INSTRUCTIONS TO USERS:
+#
+# 1. Copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake' and make any edits
+#    related to install directory, the whereabouts of GSHHS, DCW.
+# 2. If you are an advanced user who wishes to tinker with the more advanced
+#    settings, then copy 'ConfigUserAdvancedTemplate.cmake' to 'ConfigUserAdvanced.cmake',
+#    explore and make changes to your ConfigUserAdvanced.cmake file
+#    to override variables in 'ConfigDefault.cmake' on a per-user basis.
+# 3. Follow the rest of the installation instructions in BUILDING.md.
+#
+# 'ConfigUser.cmake' and 'ConfigUserAdvanced.cmake' are not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+# set (CMAKE_OSX_DEPLOYMENT_TARGET "12.3")
+
+##
+## Section 1: Installation paths
+##
+# Set install name suffix used for directories and gmt executables [undefined]:
+set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GEOS, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GEOS TRUE)
+set (GMT_EXCLUDE_PCRE TRUE)
+set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+#set (NETCDF_ROOT "netcdf_install_prefix")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+#set (GDAL_ROOT "gdal_install_prefix")
+
+# Set location of GEOS (can be root directory, path to header file or path to
+# geos-config) [auto]:
+#set (GEOS_ROOT "geos_install_prefix")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+#set (LAPACK_LIBRARY "V:/lapack-3.5.0/build/lib/liblapack.lib")
+#set (BLAS_LIBRARY "V:/lapack-3.5.0/build/lib/libblas.lib")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+#set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+# NOTE: currently only support shared libraries
+#set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+#set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Ignore the "GMT_KNOWN_FAILURE" comment in tests to let tests fail normally
+# Can only be "ON" or "OFF" in uppercase!
+#set (GMT_ENABLE_KNOWN2FAIL OFF)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Uncomment the following line to enable running tests of the GMT supplements
+#set (DO_SUPPLEMENT_TESTS ON)
+
+# Uncomment the following line if you need to run the full tests suite using
+# the gmtserver "test" distribution instead of the default server.
+# You may wish to rename existing cache and server dirs so you can restore afterwards
+# set (GMT_DATA_SERVER "test")
+
+# List extra sub-dirs of 'src' with a CMakeLists.txt to build custom modules
+# that link against the full gmt libs. (For building codes that only need the GMT API,
+# see the https://github.com/GenericMappingTools/custom-supplements project).
+# These supplemental modules can be built into separate libraries.
+#set (SUPPL_EXTRA_DIRS newsuppl1 newsuppl2 ...)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+#   #	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)			# Handle a debug plugin directory
+#	add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+# Uncomment these two statements if you are a developer debugging GMT:
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#add_definitions(-DUSE_COMMON_LONG_OPTIONS) 	# Turn on testing of upcoming long-option syntax for common GMT options
+#add_definitions(-DUSE_MODULE_LONG_OPTIONS) 	# Turn on testing of upcoming long-option syntax for module options
+#add_definitions(-DEXPORT_GMTLIB)				# Turn on to access normally un-exported or static gmtlib functions from external tools
+#add_definitions(-DNO_THEMES) 	                # Turn off implementation of GMT_THEME for debugging
+# Uncomment this statement if you are a developer debugging PSL and want exact line coordinates:
+#add_definitions(-DPSL_EXACT_LINE)
+
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement ${CMAKE_C_FLAGS}") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+#if (HAVE_OPENMP)
+#	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+#else (HAVE_OPENMP)
+#	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+#endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+# set (SUPP_DLL_RENAME supplements_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/src/CMakeLists.txt
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/src/CMakeLists.txt	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/src/CMakeLists.txt	(revision 28161)
@@ -0,0 +1,730 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Lesser General Public License for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+#-------------------------------------------------------------------------------
+#
+# To modify the cmake process: Edit your cmake/ConfigUser.cmake file
+#
+# src/CMakeLists.txt
+#
+
+include (ManageString)
+include (GmtHelperMacros)
+
+if (UNIX AND NOT APPLE)
+	set (LINUX TRUE)
+else (UNIX AND NOT APPLE)
+	set (LINUX FALSE)
+endif (UNIX AND NOT APPLE)
+
+# On Windows do not prefix the DLLs with the 'lib' prefix
+if (WIN32)
+	set(LIB_PREFIX "")
+else (WIN32)
+	set(LIB_PREFIX "lib")
+endif (WIN32)
+
+# Include CREATE_DEBUG_SYM macro and set DEBUG_BUILD
+include (CreateDebugSym)
+
+# Find executable needed by gmt
+find_program (OGR2OGR ogr2ogr)
+if (NOT OGR2OGR)
+	message (WARNING "Cannot find program ogr2ogr - gmt will be unable to convert Shapefiles to GMT/OGR format")
+	set (GMT_CONFIG_OGR2OGR_MESSAGE "no" CACHE INTERNAL "OGR2OGR config message")
+else (NOT OGR2OGR)
+	execute_process(COMMAND ogr2ogr --version OUTPUT_VARIABLE answer OUTPUT_STRIP_TRAILING_WHITESPACE)
+	string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" answer "${answer}")
+	set (GMT_CONFIG_OGR2OGR_MESSAGE "yes (${answer})" CACHE INTERNAL "OGR2OGR config message")
+endif (NOT OGR2OGR)
+
+# Find executable needed by psconvert
+find_program (GDAL_TRANSLATE gdal_translate)
+if (NOT GDAL_TRANSLATE)
+	message (WARNING "Cannot find program gdal_translate - psconvert will be unable to convert TIFF to GeoTIFF")
+	set (GMT_CONFIG_GDAL_TRANSLATE_MESSAGE "no" CACHE INTERNAL "GDAL_TRANSLATE config message")
+else (NOT GDAL_TRANSLATE)
+	execute_process(COMMAND gdal_translate --version OUTPUT_VARIABLE answer OUTPUT_STRIP_TRAILING_WHITESPACE)
+	string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" answer "${answer}")
+	set (GMT_CONFIG_GDAL_TRANSLATE_MESSAGE "yes (${answer})" CACHE INTERNAL "GDAL_TRANSLATE config message")
+endif (NOT GDAL_TRANSLATE)
+
+# Find executables needed by movie
+find_program (GM gm)
+if (NOT GM)
+	message (WARNING "Cannot find GraphicsMagick program gm - gmt movie will be unable to make animated GIFs")
+	set (GMT_CONFIG_GM_MESSAGE "no" CACHE INTERNAL "GM config message")
+else (NOT GM)
+	execute_process(COMMAND gm help OUTPUT_VARIABLE answer OUTPUT_STRIP_TRAILING_WHITESPACE)
+	string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" answer "${answer}")
+	set (GMT_CONFIG_GM_MESSAGE "yes (${answer})" CACHE INTERNAL "GM config message")
+endif (NOT GM)
+
+find_program (FFMPEG ffmpeg)
+if (NOT FFMPEG)
+	message (WARNING "Cannot find ffmpeg - gmt movie will be unable to make movies from frames")
+	set (GMT_CONFIG_FFMPEG_MESSAGE "no" CACHE INTERNAL "FFMPEG config message")
+else (NOT FFMPEG)
+	execute_process(COMMAND ffmpeg -version OUTPUT_VARIABLE answer OUTPUT_STRIP_TRAILING_WHITESPACE)
+	string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" answer "${answer}")
+	set (GMT_CONFIG_FFMPEG_MESSAGE "yes (${answer})" CACHE INTERNAL "FFMPEG config message")
+endif (NOT FFMPEG)
+
+# Find executable needed by docs
+if (LINUX)
+	find_program (XDGOPEN xdg-open)
+	if (NOT XDGOPEN)
+		message (WARNING "Cannot find program xdg-open - gmt docs will be unable to open the documentation")
+		set (GMT_CONFIG_OPEN_MESSAGE "no" CACHE INTERNAL "OPEN config message")
+	else (NOT XDGOPEN)
+		set (GMT_CONFIG_OPEN_MESSAGE "yes" CACHE INTERNAL "OPEN config message")
+	endif (NOT XDGOPEN)
+else (LINUX)
+	set (GMT_CONFIG_OPEN_MESSAGE "yes" CACHE INTERNAL "OPEN config message")
+endif (LINUX)
+
+# Find executable needed by psconvert
+if (WIN32)
+	set (GMT_CONFIG_GS_MESSAGE "yes" CACHE INTERNAL "GS config message")
+else (WIN32)
+	find_program (GS gs)
+	if (NOT GS)
+		message (WARNING "Cannot find ghostscript program gs - gmt psconvert will be unable to convert PostScript to other formats")
+		set (GMT_CONFIG_GS_MESSAGE "no" CACHE INTERNAL "GS config message")
+	else (NOT GS)
+		execute_process(COMMAND gs --version OUTPUT_VARIABLE answer OUTPUT_STRIP_TRAILING_WHITESPACE)
+		set (GMT_CONFIG_GS_MESSAGE "yes (${answer})" CACHE INTERNAL "GS config message")
+	endif (NOT GS)
+endif (WIN32)
+
+# Find libraries
+message (STATUS "Searching dependent libraries. This may take a few minutes...")
+# NetCDF is required
+find_package (NETCDF REQUIRED)
+include_directories (${NETCDF_INCLUDE_DIR})
+
+# libcurl is required since 5.4
+include_directories ($ENV{CURL_INCLUDE_DIRS})
+list (APPEND GMT_OPTIONAL_LIBRARIES $ENV{CURL_LIBRARIES})
+
+if (NOT DEFINED GMT_EXCLUDE_GDAL)
+	find_package (GDAL)
+endif (NOT DEFINED GMT_EXCLUDE_GDAL)
+if (GDAL_FOUND)
+	set (HAVE_GDAL TRUE CACHE INTERNAL "System has GDAL")
+	include_directories (${GDAL_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${GDAL_LIBRARIES})
+endif (GDAL_FOUND)
+
+if (NOT DEFINED GMT_EXCLUDE_PCRE)
+	find_package (PCRE)
+endif (NOT DEFINED GMT_EXCLUDE_PCRE)
+if (NOT PCRE_FOUND AND NOT DEFINED GMT_EXCLUDE_PCRE2)
+	find_package (PCRE2)
+endif (NOT PCRE_FOUND AND NOT DEFINED GMT_EXCLUDE_PCRE2)
+if (PCRE_FOUND)
+	set (HAVE_PCRE TRUE CACHE INTERNAL "System has PCRE")
+	set (GMT_CONFIG_REGEX_MESSAGE "PCRE (${PCRE_LIBRARIES})"
+		CACHE INTERNAL "Regex config message")
+	include_directories (${PCRE_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${PCRE_LIBRARIES})
+elseif (PCRE2_FOUND)
+	set (HAVE_PCRE2 TRUE CACHE INTERNAL "System has PCRE2")
+	set (GMT_CONFIG_REGEX_MESSAGE "PCRE2 (${PCRE2_LIBRARIES})"
+		CACHE INTERNAL "Regex config message")
+	include_directories (${PCRE2_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${PCRE2_LIBRARIES})
+else (PCRE_FOUND)
+	find_package (REGEX)
+	if (REGEX_FOUND)
+		set (HAVE_POSIX_ERE TRUE CACHE INTERNAL "System has regex.h")
+		set (GMT_CONFIG_REGEX_MESSAGE "POSIX Regex (${REGEX_INCLUDE_DIR}/regex.h)"
+			CACHE INTERNAL "Regex config message")
+		include_directories (${REGEX_INCLUDE_DIR})
+		# I don't think its needed but just in case:
+		list (APPEND GMT_OPTIONAL_LIBRARIES ${REGEX_LIBRARIES})
+	else (REGEX_FOUND)
+		set (GMT_CONFIG_REGEX_MESSAGE "unsupported"
+			CACHE INTERNAL "Regex config message")
+	endif (REGEX_FOUND)
+endif (PCRE_FOUND)
+
+if (NOT DEFINED GMT_EXCLUDE_FFTW3)
+	find_package (FFTW3)
+endif (NOT DEFINED GMT_EXCLUDE_FFTW3)
+if (FFTW3_FOUND)
+	set (HAVE_FFTW3F TRUE CACHE INTERNAL "System has single precision FFTW")
+	if (FFTW3F_THREADS_LIBRARY)
+		set (HAVE_FFTW3F_THREADS TRUE CACHE INTERNAL "System has single precision threaded FFTW")
+	endif (FFTW3F_THREADS_LIBRARY)
+	include_directories (${FFTW3_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${FFTW3F_LIBRARIES})
+endif (FFTW3_FOUND)
+
+if (NOT DEFINED GMT_EXCLUDE_LAPACK)
+	find_package (LAPACK)
+endif (NOT DEFINED GMT_EXCLUDE_LAPACK)
+if (LAPACK_FOUND)
+	set (HAVE_LAPACK TRUE CACHE INTERNAL "System has LAPACK")
+	set (GMT_CONFIG_LAPACK_MESSAGE "yes" CACHE INTERNAL "LAPACK config message")
+	include_directories (${LAPACK_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${LAPACK_LIBRARIES})
+else (LAPACK_FOUND)
+	if (LAPACK_LIBRARY)
+		# Set in ConfigUser.cmake
+		set (HAVE_LAPACK TRUE CACHE INTERNAL "System has LAPACK")
+		set (GMT_CONFIG_LAPACK_MESSAGE "yes" CACHE INTERNAL "LAPACK config message")
+		list (APPEND GMT_OPTIONAL_LIBRARIES ${LAPACK_LIBRARY})
+	else (LAPACK_LIBRARY)
+		set (GMT_CONFIG_LAPACK_MESSAGE "no" CACHE INTERNAL "LAPACK config message")
+	endif (LAPACK_LIBRARY)
+endif (LAPACK_FOUND)
+
+if (NOT DEFINED GMT_EXCLUDE_BLAS)
+	find_package (BLAS)
+endif (NOT DEFINED GMT_EXCLUDE_BLAS)
+if (BLAS_FOUND)
+	set (HAVE_BLAS TRUE CACHE INTERNAL "System has BLAS")
+	set (GMT_CONFIG_BLAS_MESSAGE "yes" CACHE INTERNAL "BLAS config message")
+	include_directories (${BLAS_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${BLAS_LIBRARIES})
+else (BLAS_FOUND)
+	if (BLAS_LIBRARY)
+		# Set in ConfigUser.cmake
+		set (HAVE_BLAS TRUE CACHE INTERNAL "System has BLAS")
+		set (GMT_CONFIG_BLAS_MESSAGE "yes" CACHE INTERNAL "BLAS config message")
+		list (APPEND GMT_OPTIONAL_LIBRARIES ${BLAS_LIBRARY})
+	else (BLAS_LIBRARY)
+		set (GMT_CONFIG_BLAS_MESSAGE "no" CACHE INTERNAL "BLAS config message")
+	endif (BLAS_LIBRARY)
+endif (BLAS_FOUND)
+
+if (NOT DEFINED GMT_EXCLUDE_ZLIB)
+	find_package (ZLIB)
+endif (NOT DEFINED GMT_EXCLUDE_ZLIB)
+if (ZLIB_FOUND)
+	set (HAVE_ZLIB TRUE CACHE INTERNAL "System has ZLIB")
+	include_directories (${ZLIB_INCLUDE_DIRS})
+endif (ZLIB_FOUND)
+
+
+if (APPLE)
+	# Accelerate framework
+	find_library (ACCELERATE_FRAMEWORK Accelerate)
+	mark_as_advanced (ACCELERATE_FRAMEWORK)
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${ACCELERATE_FRAMEWORK})
+endif (APPLE)
+
+if (DEFINED GMT_ENABLE_OPENMP)
+	set (GMT_OPENMP TRUE CACHE INTERNAL "Turn on GMT OpenMP")
+endif (DEFINED GMT_ENABLE_OPENMP)
+find_package (OpenMP)
+if (OPENMP_FOUND AND GMT_OPENMP)
+	set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
+	set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
+	set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${OpenMP_SHARED_LINKER_FLAGS}")
+	set (HAVE_OPENMP TRUE CACHE INTERNAL "OpenMP enabled." FORCE)
+	set (GMT_CONFIG_OPENMP_MESSAGE "enabled"
+		CACHE INTERNAL "OPENMP config message")
+	if (WIN32 AND OMP_DLL_LOC)
+		# UGLY AND RISKY PATCH FOR THE CPACK BUG OF NOT COPYING THE OMP DLL. THIS PATCH RELIES
+		# ON THE SETTING OF THE OMP_DLL_LOC VARIABLE IN ConfigUser.cmake. MINE HAS:
+		# set (OMP_DLL_LOC "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/redist/x64/Microsoft.VC120.OPENMP/vcomp120.dll")
+		install(FILES ${OMP_DLL_LOC} DESTINATION bin COMPONENT Libraries)
+	endif (WIN32 AND OMP_DLL_LOC)
+else (OPENMP_FOUND AND GMT_OPENMP)
+	set (HAVE_OPENMP FALSE CACHE INTERNAL "OpenMP disabled." FORCE)
+	set (GMT_CONFIG_OPENMP_MESSAGE "disabled"
+		CACHE INTERNAL "OPENMP config message")
+endif (OPENMP_FOUND AND GMT_OPENMP)
+if (OPENMP_FOUND AND NOT GMT_OPENMP)
+	message (STATUS "User variable GMT_OPENMP not set: disabling OpenMP.")
+	set (GMT_CONFIG_OPENMP_MESSAGE "disabled (GMT_OPENMP not set)"
+		CACHE INTERNAL "OPENMP config message")
+endif (OPENMP_FOUND AND NOT GMT_OPENMP)
+
+find_package(GLIB COMPONENTS gthread)
+if (GLIB_FOUND AND GMT_USE_THREADS)
+	set (HAVE_GLIB_GTHREAD TRUE CACHE INTERNAL "System has GLIB component gthread")
+	include_directories (${GLIB_INCLUDE_DIRS})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${GLIB_LIBRARIES})
+	set (GMT_CONFIG_GTHREAD_MESSAGE "enabled"
+		CACHE INTERNAL "GTHREAD config message")
+endif (GLIB_FOUND AND GMT_USE_THREADS)
+if (GLIB_FOUND AND NOT GMT_USE_THREADS)
+	set (HAVE_GLIB_GTHREAD FALSE CACHE INTERNAL "User disabled threads")
+	message (STATUS "User variable GMT_USE_THREADS not set: disabling GThread.")
+	set (GMT_CONFIG_GTHREAD_MESSAGE "disabled"
+		CACHE INTERNAL "GTHREAD config message")
+endif (GLIB_FOUND AND NOT GMT_USE_THREADS)
+if (GMT_USE_THREADS AND NOT GLIB_FOUND)
+	message (FATAL_ERROR "User variable GMT_USE_THREADS set but GLIB component gthread not found.")
+	set (GMT_CONFIG_GTHREAD_MESSAGE "unavailable"
+		CACHE INTERNAL "GTHREAD config message")
+endif (GMT_USE_THREADS AND NOT GLIB_FOUND)
+
+# check for math and POSIX functions
+include(ConfigureChecks)
+
+include_directories (${GMT_SOURCE_DIR}/src)
+include_directories (${CMAKE_CURRENT_BINARY_DIR})
+set(CMAKE_INCLUDE_CURRENT_DIR TRUE)
+
+# Examples and tests depend on Shorelines
+find_package (GSHHG)
+if (DO_EXAMPLES OR DO_TESTS AND NOT GSHHG_FOUND)
+	message (FATAL_ERROR "Cannot proceed without GSHHG Shorelines. "
+		"Need to either set GSHHG_ROOT or disable tests.")
+endif (DO_EXAMPLES OR DO_TESTS AND NOT GSHHG_FOUND)
+
+# Examples and tests depend on DCW
+find_package (DCW)
+if (DO_EXAMPLES OR DO_TESTS AND NOT DCW_FOUND)
+	message (FATAL_ERROR "Cannot proceed without DCW polygons. "
+		"Need to either set DCW_ROOT or disable tests."
+		"Obtain dcw-gmt-<version>.tar.gz or dcw-gmt-<version>.zip from ftp://ftp.soest.hawaii.edu/gmt and make DCW_ROOT variable point to the directory where you unarchived the files")
+endif (DO_EXAMPLES OR DO_TESTS AND NOT DCW_FOUND)
+
+if (DO_API_TESTS)
+	# These lines are temporarily here for the beta release - comment to avoid in the build
+	set (GMT_DEMOS_SRCS testapi.c testpsl.c testgmt.c testgmtshell.c testgmtio.c testgrdio.c testio.c
+		testapiconv.c example1.c testapi_matrix.c testapi_matrix_plot.c testapi_vector.c test_JL.c testapi_mixmatrix.c
+		test_walter.c testapi_usergrid.c testapi_userdataset.c testapi_uservectors.c)
+endif (DO_API_TESTS)
+
+if (NOT LICENSE_RESTRICTED) # off
+	# enable Shewchuk's triangle routine
+	set (GMT_TRIANGULATE "Shewchuk" PARENT_SCOPE)
+	set (GMT_TRIANGLE_SRCS triangle.c triangle.h)
+	list (APPEND GMT_EXTRA_LICENSE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/README.TRIANGLE)
+	set (GMT_EXTRA_LICENSE_FILES ${GMT_EXTRA_LICENSE_FILES} PARENT_SCOPE)
+else (NOT LICENSE_RESTRICTED) # on
+	# disable Shewchuk's triangle routine
+	set (GMT_TRIANGULATE "Watson" PARENT_SCOPE)
+endif (NOT LICENSE_RESTRICTED)
+
+# Note: Developers can set EXTRA_MODULES in ConfigUser.cmake to test new modules
+set (GMT_PROGS_SRCS blockmean.c blockmedian.c blockmode.c docs.c dimfilter.c filter1d.c grd2kml.c
+	fitcircle.c gmt2kml.c gmtconvert.c gmtlogo.c gmtmath.c gmtselect.c gmtsimplify.c
+	gmtspatial.c gmtconnect.c gmtregress.c gmtvector.c gmtwhich.c grd2cpt.c
+	grd2xyz.c grdblend.c grdclip.c grdcut.c grdedit.c grdfft.c grdfill.c grdfilter.c
+	grdgradient.c grdhisteq.c grdinfo.c grdlandmask.c grdmask.c grdmath.c
+	grdpaste.c grdproject.c grdsample.c grdconvert.c grdtrack.c movie.c
+	grdtrend.c grdvolume.c greenspline.c kml2gmt.c makecpt.c mapproject.c
+	gmtinfo.c nearneighbor.c project.c psconvert.c sample1d.c spectrum1d.c
+	sph2grd.c sphdistance.c sphinterpolate.c sphtriangulate.c splitxyz.c
+	surface.c trend1d.c trend2d.c triangulate.c xyz2grd.c gmtdefaults.c gmtget.c
+	gmtset.c grdcontour.c grdimage.c grdvector.c grdview.c psbasemap.c psclip.c
+	pscoast.c pscontour.c psevents.c pshistogram.c psimage.c psmask.c psrose.c psscale.c
+	pssolar.c psternary.c pstext.c pswiggle.c psxy.c psxyz.c pslegend.c ${EXTRA_MODULES})
+
+# Legacy modules for which to install compatibility links via
+# install_module_symlink
+set (GMT_COMPAT_MODULES minmax gmt2rgb gmtstitch gmtdp grdreformat ps2raster)
+
+# libpslib
+set (GMT_PSL_SRCS postscriptlight.c declspec.h psl_config.h PSL_Standard+.h
+	PSL_Standard.h PSL_ISOLatin1+.h PSL_ISOLatin1.h PSL_ISO-8859-1.h
+	PSL_ISO-8859-2.h PSL_ISO-8859-3.h PSL_ISO-8859-4.h PSL_ISO-8859-5.h
+	PSL_ISO-8859-6.h PSL_ISO-8859-7.h PSL_ISO-8859-8.h PSL_ISO-8859-9.h
+	PSL_ISO-8859-10.h PSL_ISO-8859-13.h PSL_ISO-8859-14.h PSL_ISO-8859-15.h
+	PSL_strings.h PSL_patterns.h)
+
+set (GMT_MBSYSTEM_SRCS gmt_mbsystem_module.c gmt_mbsystem_module.h)
+
+# libgmt
+set (GMT_LIB_SRCS block_subs.h common_byteswap.h common_math.h
+	common_runpath.h common_sighandler.c common_string.h clear.c begin.c
+	gmt_color_rgb.h gmt_colornames.h
+	gmt_modern.c end.c declspec.h gmt_hidden.h gmt_remote.h gmt_remote.c
+	figure.c gmt_dev.h gmt_common.h gmt_constants.h compat/qsort.h
+	gmt_contour.h gmt_customio.h gmt_datums.h gmt_dcw.h gmt_decorate.h gmt_defaults.h
+	gmt_ellipsoids.h gmt_error.h gmt_gdalread.h gmt_glib.h gmt_grd.h gmt_grdio.h gmt_hash.h
+	gmt_internals.h gmt_io.h gmt_macros.h gmt_media_name.h gmt_modern.h
+	gmt_media_size.h gmt_mgg_header2.h gmt_sharedlibs.h gmt_memory.h gmt_mb.h
+	gmt_core_module.h gmt_nan.h gmt_notposix.h gmt_pennames.h gmt_enum_dict.h
+	gmt_plot.h gmt_project.h gmt_prototypes.h gmt_psl.h gmt_shore.h gmt_gsformats.h
+	gmt_symbol.h gmt_synopsis.h gmt_texture.h gmt_time.h gmt_cpt_masters.h
+	gmt_types.h gmt_unique.h gmt_version.h gshhg_version.h postscriptlight.h
+	s_rint.h triangle.h gmt.h gmt_resources.h gmt_private.h subplot.c
+	gmt_error_codes.h gmt_api.c gmt_bcr.c gmt_calclock.c gmt_cdf.c gmt_compat.c
+	gmt_customio.c gmt_dcw.c gmt_error.c gmt_fft.c gmt_grdio.c gmt_io.c
+	gmt_memory.c gmt_nc.c gmt_notposix.c gmt_proj.c gmt_shore.c gmt_sph.c
+	gmt_stat.c gmt_support.c gmt_regexp.c gmt_vector.c gmt_parse.c inset.c
+	gmt_error_codes.c gshhg_version.c gmtread.c gmtwrite.c common_math.c
+	common_runpath.c common_sighandler.c common_string.c compat/qsort.c
+	gmt_sharedlibs.c gmt_core_module.c gmt_init.c gmt_map.c gmt_plot.c
+	kiss_fft/_kiss_fft_guts.h kiss_fft/kiss_fft.c kiss_fft/kiss_fft.h
+	kiss_fft/kiss_fftnd.c kiss_fft/kiss_fftnd.h
+	${GMT_TRIANGLE_SRCS} ${GMT_MBSYSTEM_SRCS})
+
+if (BUILD_SUPPLEMENTS)
+	# Needed in supplib, + supplements themselves
+	set (GMT_SUPPL_SRCS gmt_modern.c gmt_supplements_module.h gmt_supplements_module.c)
+endif (BUILD_SUPPLEMENTS)
+
+# dependencies on generated files
+set (GMT_GEN_HDRS gmt_keycases.h
+	gmt_keywords.h gmt_config.h
+	gmt_dimensions.h
+	CACHE INTERNAL "Autogenerated GMT headers")
+
+# Add commands to create header files
+
+add_custom_command (OUTPUT gmt_keycases.h gmt_keywords.h
+	COMMAND ${CMAKE_COMMAND}
+	-D GENERATE_COMMAND=gen_gmt_keywords_h
+	-D CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}
+	-D GMT_SRC=${GMT_SOURCE_DIR}
+	-P ${CMAKE_MODULE_PATH}/GmtGenExtraHeaders.cmake
+	DEPENDS gmt_keywords.txt gmt_keywords.d)
+
+add_custom_command (OUTPUT gmt_dimensions.h
+	COMMAND ${CMAKE_COMMAND}
+	-D GENERATE_COMMAND=gen_gmt_dimensions_h
+	-D CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}
+	-D GMT_SRC=${GMT_SOURCE_DIR}
+	-P ${CMAKE_MODULE_PATH}/GmtGenExtraHeaders.cmake
+	DEPENDS gmt_media_name.h gmt_pennames.h gmt_unique.h gmt_cpt_masters.h
+	gmt_keycases.h)
+	# depends on cached line numbers from these generated files:
+
+# autogenerated files target
+add_custom_target (gen_gmt_headers DEPENDS ${GMT_GEN_HDRS})
+
+# Configure header files to pass some of the CMake settings to the source code
+configure_file (gmt_config.h.in gmt_config.h)
+configure_file (psl_config.h.in psl_config.h)
+configure_file (gmt_version.h.in gmt_version.h)
+configure_file (isogmt.in isogmt${GMT_INSTALL_NAME_SUFFIX} @ONLY)
+configure_file (gmt-config.in gmt-config${GMT_INSTALL_NAME_SUFFIX} @ONLY)
+
+# gmtprogram
+set (GMT_PROGRAM ${GMT_SOURCE_DIR}/src/gmtprogram.c)
+
+# extra ugly definitions for triangle
+set_source_files_properties (triangle.c
+	PROPERTIES
+	COMPILE_DEFINITIONS "NO_TIMER;TRILIBRARY;REDUCED;CDT_ONLY;ANSI_DECLARATORS")
+
+# libpslib
+add_library (pslib
+	${GMT_GEN_HDRS}
+	${GMT_PSL_SRCS})
+
+add_dependencies (pslib gen_gmt_headers) # make pslib after gen_gmt_headers
+
+if (HAVE_M_LIBRARY)
+	# link the math library
+	target_link_libraries (pslib m)
+endif (HAVE_M_LIBRARY)
+
+if (HAVE_ZLIB)
+	# for DEFLATE encoding
+  target_link_libraries (pslib ${ZLIB_LIBRARIES})
+endif (HAVE_ZLIB)
+
+# set the build version (VERSION) and the API version (SOVERSION)
+set_target_properties (pslib
+	PROPERTIES
+	OUTPUT_NAME postscriptlight
+	PREFIX "${LIB_PREFIX}"
+	IMPORT_PREFIX "${LIB_PREFIX}"
+	VERSION ${GMT_LIB_VERSION}
+	SOVERSION ${GMT_LIB_SOVERSION}
+	DEFINE_SYMBOL "LIBRARY_EXPORTS")
+
+# If a renaming of the gmtpslpsl dll has been set in ConfigUser.cmake
+if (WIN32 AND PSL_DLL_RENAME)
+	set_target_properties (pslib PROPERTIES RUNTIME_OUTPUT_NAME ${PSL_DLL_RENAME})
+endif (WIN32 AND PSL_DLL_RENAME)
+
+if (BUILD_SUPPLEMENTS)
+	# supplement directories (only those, which are to be included in gmtlib)
+	# EXTRA_BUILD_DIRS are for testing new supplements that are not yet in
+	# subversion. See cmake/ConfigUserTemplate.cmake for setting this parameter.
+	set (GMT_SUPPL_DIRS geodesy gshhg img mgd77 potential segy seis
+		spotter x2sys ${EXTRA_BUILD_DIRS})
+endif (BUILD_SUPPLEMENTS)
+
+# path to all binary dirs (used to set PATH in test scripts)
+set (GMT_BINARY_DIR_PATH "${CMAKE_CURRENT_BINARY_DIR}/\${CMAKE_CONFIG_TYPE:-.}")
+
+if (BUILD_SUPPLEMENTS)
+	# process supplement directories
+	if (UNIX)
+		set (CMAKE_SHARED_MODULE_SUFFIX .so)
+	endif (UNIX)
+	foreach (_dir ${GMT_SUPPL_DIRS})
+		add_subdirectory (${_dir})
+		list (APPEND GMT_BINARY_DIR_PATH
+			"${CMAKE_CURRENT_BINARY_DIR}/${_dir}/\${CMAKE_CONFIG_TYPE:-.}")
+	endforeach (_dir)
+	# supplement library files
+	get_subdir_var_files (GMT_SUPPL_LIB_SRCS LIB_SRCS ${GMT_SUPPL_DIRS})
+
+	# include supplement directories
+	foreach (_dir ${GMT_SUPPL_DIRS})
+		include_directories (${CMAKE_CURRENT_BINARY_DIR}/${_dir})
+	endforeach (_dir)
+	# libgmtsuppl
+	if (WIN32)
+		add_library (supplib
+			${GMT_GEN_HDRS}
+			${GMT_SUPPL_SRCS}
+			${GMT_SUPPL_LIB_SRCS})
+	else (WIN32)
+		add_library (supplib MODULE
+			${GMT_GEN_HDRS}
+			${GMT_SUPPL_SRCS}
+			${GMT_SUPPL_LIB_SRCS})
+	endif (WIN32)
+
+	add_dependencies (supplib gen_gmt_headers) # make supplib after gen_gmt_headers
+	add_dependencies (supplib pslib) # make supplib after pslib
+	add_dependencies (supplib gmtlib) # make supplib after pslib
+
+	# No SOVERSION & VERSION for a MODULE, only for SHARED libs
+	target_link_libraries (supplib
+		gmtlib
+		pslib)
+
+	# Include any extra files that are listed in EXTRA_INCLUDE_GMTSUPPL defined in ConfigUser.cmake
+	# This include(s) will add new modules to the official GMT supplements
+	if (EXTRA_INCLUDE_GMTSUPPL)
+		foreach (_f ${EXTRA_INCLUDE_GMTSUPPL})
+			include (${_f})
+		endforeach(_f)
+	endif (EXTRA_INCLUDE_GMTSUPPL)
+
+	set_target_properties (supplib
+		PROPERTIES
+		OUTPUT_NAME supplements
+		RUNTIME_OUTPUT_NAME supplements
+		LIBRARY_OUTPUT_DIRECTORY plugins
+		RUNTIME_OUTPUT_DIRECTORY plugins
+		PREFIX ""
+		LINK_FLAGS "${USER_GMTLIB_LINK_FLAGS}"
+		DEFINE_SYMBOL "LIBRARY_EXPORTS")
+
+	if (WIN32 AND SUPP_DLL_RENAME)
+		set_target_properties (supplib PROPERTIES RUNTIME_OUTPUT_NAME ${SUPP_DLL_RENAME})
+	endif (WIN32 AND SUPP_DLL_RENAME)
+
+	if (HAVE_DLADDR AND HAVE_LIBDL)
+		# link the dynamic linking loader library
+		target_link_libraries (supplib dl)
+	endif (HAVE_DLADDR AND HAVE_LIBDL)
+
+	if (HAVE_M_LIBRARY)
+		# link the math library
+		target_link_libraries (supplib m)
+	endif (HAVE_M_LIBRARY)
+
+	# install target
+	install (TARGETS supplib
+		LIBRARY DESTINATION ${GMT_LIBDIR}/gmt${GMT_INSTALL_NAME_SUFFIX}/plugins # UNIX
+		COMPONENT Runtime
+		RUNTIME DESTINATION ${GMT_BINDIR}/gmt_plugins # Windows
+		COMPONENT Runtime)
+endif (BUILD_SUPPLEMENTS)
+
+# Include any extra files that are listed in EXTRA_INCLUDE_NEWSUPPL defined in ConfigUser.cmake
+# This include(s) will create new pluggins
+if (EXTRA_INCLUDE_NEWSUPPL)
+	foreach (_f ${EXTRA_INCLUDE_NEWSUPPL})
+		include (${_f})
+	endforeach(_f)
+endif (EXTRA_INCLUDE_NEWSUPPL)
+
+
+# make UNIX PATH variable
+string (REPLACE ";" ":" GMT_BINARY_DIR_PATH "${GMT_BINARY_DIR_PATH}")
+set (GMT_BINARY_DIR_PATH ${GMT_BINARY_DIR_PATH} CACHE INTERNAL
+	"UNIX PATH to all binary dirs")
+
+# libgmt
+add_library (gmtlib
+	${GMT_GEN_HDRS}
+	${GMT_LIB_SRCS}
+	${GMT_PROGS_SRCS})
+
+add_dependencies (gmtlib gen_gmt_headers) # make gmtlib after gen_gmt_headers
+add_dependencies (gmtlib pslib) # make gmtlib after pslib
+
+target_link_libraries (gmtlib
+	${NETCDF_LIBRARIES}
+	${GMT_OPTIONAL_LIBRARIES}
+	pslib)
+
+if (HAVE_M_LIBRARY)
+	# link the math library
+	target_link_libraries (gmtlib m)
+endif (HAVE_M_LIBRARY)
+
+# set the build version (VERSION) and the API version (SOVERSION)
+set_target_properties (gmtlib
+	PROPERTIES
+	OUTPUT_NAME gmt
+	PREFIX "${LIB_PREFIX}"
+	IMPORT_PREFIX "${LIB_PREFIX}"
+	VERSION ${GMT_LIB_VERSION}
+	SOVERSION ${GMT_LIB_SOVERSION}
+	LINK_FLAGS "${USER_GMTLIB_LINK_FLAGS}"
+	DEFINE_SYMBOL "LIBRARY_EXPORTS")
+
+# If a renaming of the gmt dll has been set in ConfigUser.cmake
+if (WIN32 AND GMT_DLL_RENAME)
+	set_target_properties (gmtlib PROPERTIES RUNTIME_OUTPUT_NAME ${GMT_DLL_RENAME})
+endif (WIN32 AND GMT_DLL_RENAME)
+
+if (HAVE_DLADDR AND HAVE_LIBDL)
+	# link the dynamic linking loader library
+	target_link_libraries (pslib dl)
+	target_link_libraries (gmtlib dl)
+endif (HAVE_DLADDR AND HAVE_LIBDL)
+
+if (MSVC AND FFTW3_FOUND)
+	target_link_libraries (gmtlib ws2_32)
+endif (MSVC AND FFTW3_FOUND)
+
+# build targets for standalone gmt target and demos
+string (REPLACE ".c" "" _gmt_progs "gmt.c;${GMT_DEMOS_SRCS}")
+foreach (_gmt_prog ${_gmt_progs})
+	add_executable (${_gmt_prog} ${_gmt_prog}.c)
+	target_link_libraries (${_gmt_prog} gmtlib)
+endforeach (_gmt_prog)
+
+add_executable (psldemo psldemo.h psldemo.c)
+target_link_libraries (psldemo pslib)
+
+# Rename gmt target to prevent version clash
+set_target_properties (gmt PROPERTIES OUTPUT_NAME gmt${GMT_INSTALL_NAME_SUFFIX})
+
+# generate and install Mac/Windows debugging symbols
+create_debug_sym (${GMT_BINDIR} gmt)
+if (WIN32)
+	create_debug_sym (${GMT_BINDIR} gmtlib pslib)
+	create_debug_sym (${GMT_BINDIR}/gmt_plugins supplib)
+else (WIN32)
+	create_debug_sym (${GMT_LIBDIR} gmtlib pslib)
+	create_debug_sym (${GMT_LIBDIR}/gmt${GMT_INSTALL_NAME_SUFFIX}/plugins supplib)
+endif (WIN32)
+
+# gshhg_version
+add_executable (gshhg_version gshhg_version.h gshhg_version.c)
+set_target_properties (gshhg_version
+	PROPERTIES COMPILE_DEFINITIONS "STANDALONE")
+target_link_libraries (gshhg_version ${NETCDF_LIBRARIES})
+
+# script2verbatim for removing svn keywords, comments etc. from example scripts
+add_executable (script2verbatim script2verbatim.c)
+
+if (BUILD_SUPPLEMENTS)
+	# Tests depend on GMT progs and supplements:
+	add_dependencies (check ${_gmt_progs} psldemo supplib)
+else (BUILD_SUPPLEMENTS)
+	# Tests depend on GMT progs and supplements:
+	add_dependencies (check ${_gmt_progs} psldemo)
+endif (BUILD_SUPPLEMENTS)
+
+if (MSVC)
+	# Disable automatic manifest generation
+	string(REGEX REPLACE "/MANIFEST[^ ]*( |$)" ""
+		CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
+	set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO")
+
+	# To expand the command line arguments in Windows, see:
+	# http://msdn.microsoft.com/en-us/library/8bch7bkk.aspx
+	set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} setargv.obj")
+endif (MSVC)
+
+# add the install targets
+install (TARGETS gmtlib pslib gmt
+	ARCHIVE DESTINATION ${GMT_LIBDIR}
+	COMPONENT Runtime
+	LIBRARY DESTINATION ${GMT_LIBDIR}
+	COMPONENT Runtime
+	RUNTIME DESTINATION ${GMT_BINDIR}
+	COMPONENT Runtime)
+
+string (REPLACE ".c" "" _gmt_modules "${GMT_PROGS_SRCS}")
+install_module_symlink (${_gmt_modules} ${GMT_COMPAT_MODULES})
+
+# Install public headers
+install (FILES gmt.h gmt_resources.h declspec.h
+	DESTINATION ${GMT_INCLUDEDIR}
+	COMPONENT Runtime)
+
+if (BUILD_DEVELOPER)
+	# Install Developer headers [These are clean and have no #define HAVE_* configuration]
+	install (FILES postscriptlight.h common_math.h common_string.h gmt_common.h gmt_constants.h gmt_contour.h
+		gmt_dcw.h gmt_decorate.h gmt_defaults.h gmt_error.h gmt_error_codes.h gmt_fft.h gmt_gdalread.h gmt_grd.h
+		gmt_grdio.h gmt_hash.h gmt_io.h gmt_macros.h gmt_memory.h gmt_modern.h gmt_nan.h gmt_notposix.h gmt_plot.h
+		gmt_private.h gmt_project.h gmt_prototypes.h gmt_psl.h gmt_shore.h gmt_symbol.h gmt_synopsis.h
+		gmt_texture.h gmt_time.h gmt_types.h gmt_dev.h gmt_customio.h gmt_hidden.h gmt_mb.h
+		gmt_core_module.h gmt_supplements_module.h compat/qsort.h
+		DESTINATION ${GMT_INCLUDEDIR}
+		COMPONENT Runtime)
+	install (FILES compat/qsort.h
+		DESTINATION ${GMT_INCLUDEDIR}/compat
+		COMPONENT Runtime)
+	# Install Configured Developer headers [These are produced by cmake from *.h.in files]
+	install (FILES ${PROJECT_BINARY_DIR}/src/config.h ${PROJECT_BINARY_DIR}/src/gmt_config.h
+		${PROJECT_BINARY_DIR}/src/gmt_dimensions.h ${PROJECT_BINARY_DIR}/src/gmt_version.h
+		${PROJECT_BINARY_DIR}/src/psl_config.h
+		DESTINATION ${GMT_INCLUDEDIR}
+		COMPONENT Runtime)
+endif (BUILD_DEVELOPER)
+
+# symlink to gmt-wrapper in bindir and libdir:
+if (UNIX AND GMT_INSTALL_NAME_SUFFIX)
+	get_target_property(_gmt_wrapper_name gmt OUTPUT_NAME)
+	install (CODE "
+	execute_process (
+		COMMAND ${CMAKE_COMMAND} -E create_symlink
+		\"${_gmt_wrapper_name}\" \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${GMT_BINDIR}/gmt\")
+	")
+endif (UNIX AND GMT_INSTALL_NAME_SUFFIX)
+
+# install extra files
+install (PROGRAMS
+	${CMAKE_CURRENT_BINARY_DIR}/isogmt${GMT_INSTALL_NAME_SUFFIX}
+	${CMAKE_CURRENT_BINARY_DIR}/gmt-config${GMT_INSTALL_NAME_SUFFIX}
+	DESTINATION ${GMT_BINDIR}
+	COMPONENT Runtime)
+
+install (PROGRAMS gmtswitch
+	RENAME gmtswitch${GMT_INSTALL_NAME_SUFFIX}
+	DESTINATION ${GMT_BINDIR}
+	COMPONENT Runtime)
+
+install (PROGRAMS gmt_shell_functions.sh
+	RENAME gmt_shell_functions${GMT_INSTALL_NAME_SUFFIX}.sh
+	DESTINATION ${GMT_BINDIR}
+	COMPONENT Runtime)
+
+if (WIN32)
+	install (PROGRAMS
+		gmtswitch.bat
+		DESTINATION ${GMT_BINDIR}
+		COMPONENT Runtime)
+endif (WIN32)
+
+# this prints out the final version of the compiler/linker flags
+string (TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_UPPER)
+string(REGEX REPLACE "[ ]+" " " _using_cflags ${CMAKE_C_FLAGS} " "
+	${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE_UPPER}})
+message (STATUS "Using CFLAGS = '${_using_cflags}'")
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/cmake/modules/FindGDAL.cmake.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/cmake/modules/FindGDAL.cmake.patch	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/cmake/modules/FindGDAL.cmake.patch	(revision 28161)
@@ -0,0 +1,79 @@
+--- src/cmake/modules/FindGDAL.cmake    2024-03-20 19:47:15
++++ FindGDAL.cmake  2024-03-20 19:55:54
+@@ -81,12 +81,25 @@
+               ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
+               OUTPUT_VARIABLE GDAL_CONFIG_LIBS)
+          if (GDAL_CONFIG_LIBS)
+-              string (REGEX MATCHALL "-l[^ ]+" _gdal_dashl ${GDAL_CONFIG_LIBS})
+-              string (REGEX REPLACE "-l" "" _gdal_lib "${_gdal_dashl}")
+-              string (REGEX MATCHALL "-L[^ ]+" _gdal_dashL ${GDAL_CONFIG_LIBS})
+-              string (REGEX REPLACE "-L" "" _gdal_libpath "${_gdal_dashL}")
++              string (REGEX MATCHALL "(^| )-l[^ ]+" _gdal_dashl ${GDAL_CONFIG_LIBS})
++              string (REGEX REPLACE "(^| )-l" "" _gdal_lib "${_gdal_dashl}")
++              string (REGEX MATCHALL "(^| )-L[^ ]+" _gdal_dashL ${GDAL_CONFIG_LIBS})
++              string (REGEX REPLACE "(^| )-L" "" _gdal_libpath "${_gdal_dashL}")
+          endif (GDAL_CONFIG_LIBS)
++         execute_process (COMMAND ${GDAL_CONFIG} --dep-libs
++              ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
++              OUTPUT_VARIABLE GDAL_CONFIG_DEP_LIBS)
++         if (GDAL_CONFIG_DEP_LIBS)
++              string (REGEX MATCHALL "(^| )-l[^ ]+" _gdal_dashl ${GDAL_CONFIG_DEP_LIBS})
++              string (REGEX REPLACE "(^| )-l" "" _gdal_dep_lib "${_gdal_dashl}")
++              string (REGEX MATCHALL "(^| )-L[^ ]+" _gdal_dashL ${GDAL_CONFIG_DEP_LIBS})
++              string (REGEX REPLACE "(^| )-L" "" _gdal_dep_libpath "${_gdal_dashL}")
++         endif (GDAL_CONFIG_DEP_LIBS)
+     endif (GDAL_CONFIG)
++    if (_gdal_dep_lib)
++         list (REMOVE_DUPLICATES _gdal_dep_lib)
++         list (REMOVE_ITEM _gdal_dep_lib gdal)
++    endif (_gdal_dep_lib)
+ endif (UNIX AND NOT GDAL_FOUND)
+ 
+ find_path (GDAL_INCLUDE_DIR gdal.h
+@@ -129,6 +142,46 @@
+     /usr/local
+ )
+ 
++# find all libs that gdal-config --dep-libs reports
++foreach (_extralib ${_gdal_dep_lib})
++    find_library (_found_lib_${_extralib}
++         NAMES ${_extralib}
++         HINTS
++         ${HDF5_ROOT}
++         $ENV{HDF5_ROOT}
++         ${NETCDF_ROOT}
++         $ENV{NETCDF_ROOT}
++         ${ZLIB_ROOT}
++         $ENV{ZLIB_ROOT}
++         ${CURL_ROOT}
++         $ENV{CURL_ROOT}
++         PATH_SUFFIXES lib
++         PATHS 
++         ${_gdal_dep_libpath}
++    )
++    list (APPEND GDAL_LIBRARY ${_found_lib_${_extralib}})
++endforeach (_extralib)
++
++# append manually-supplied libs
++# find all manually-supplied libs
++if (GDAL_EXTRA_LIBS)
++    # Ensure -l is preceded by whitespace to not match
++    # '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
++    string (REGEX MATCHALL "(^| )-l[^ ]+" _gdal_extra_lib_dashl ${GDAL_EXTRA_LIBS})
++    string (REGEX REPLACE "(^| )-l" "" _gdal_extra_lib "${_gdal_extra_lib_dashl}")
++    string (REGEX MATCHALL "(^| )-L[^ ]+" _gdal_extra_lib_dashL ${GDAL_EXTRA_LIBS})
++    string (REGEX REPLACE "(^| )-L" "" _gdal_extra_libpath "${_gdal_extra_lib_dashL}")
++    foreach (_extralib ${_gdal_extra_lib})
++         find_library (_found_lib_${_extralib}
++              NAMES ${_extralib}
++              PATH_SUFFIXES lib
++              PATHS 
++              ${_gdal_extra_libpath}
++         )
++         list (APPEND GDAL_LIBRARY ${_found_lib_${_extralib}})
++    endforeach (_extralib)
++endif (GDAL_EXTRA_LIBS)
++
+ include (FindPackageHandleStandardArgs)
+ find_package_handle_standard_args (GDAL DEFAULT_MSG GDAL_LIBRARY GDAL_INCLUDE_DIR)
+ 
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/cmake/modules/FindGSHHG.cmake.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/cmake/modules/FindGSHHG.cmake.patch	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/cmake/modules/FindGSHHG.cmake.patch	(revision 28161)
@@ -0,0 +1,13 @@
+--- src/cmake/modules/FindGSHHG.cmake	2024-01-07 01:32:40
++++ FindGSHHG.cmake	2024-03-20 12:30:46
+@@ -52,6 +52,10 @@
+ set (GSHHG_MIN_REQUIRED_VERSION
+ 	"${GSHHG_MIN_REQUIRED_VERSION_MAJOR}.${GSHHG_MIN_REQUIRED_VERSION_MINOR}.${GSHHG_MIN_REQUIRED_VERSION_PATCH}")
+ 
++# Temporary hack to bypass failure of compilation of code to find GSHHG
++set (GSHHG_FOUND TRUE)
++set (GSHHG_VERSION "2.3.4" CACHE INTERNAL "GSHHG version")
++
+ # check GSHHG version
+ if (_GSHHG_FILE AND NOT GSHHG_FOUND)
+ 	if (NOT CMAKE_CROSSCOMPILING)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/cmake/modules/FindNETCDF.cmake.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/cmake/modules/FindNETCDF.cmake.patch	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/cmake/modules/FindNETCDF.cmake.patch	(revision 28161)
@@ -0,0 +1,90 @@
+--- src/cmake/modules/FindNETCDF.cmake  2024-01-07 01:32:40
++++ FindNETCDF.cmake     2024-03-20 19:01:13
+@@ -67,6 +67,23 @@
+                     OUTPUT_VARIABLE NETCDF_PREFIX_DIR
+                     ERROR_QUIET
+                     OUTPUT_STRIP_TRAILING_WHITESPACE)
++    execute_process(COMMAND ${NC_CONFIG} --libs
++                    RESULT_VARIABLE nc_res
++                    OUTPUT_VARIABLE NETCDF_LIBS
++                    ERROR_QUIET
++                    OUTPUT_STRIP_TRAILING_WHITESPACE)
++    if (NETCDF_LIBS)
++        # Ensure -l is preceded by whitespace to not match
++        # '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
++        string (REGEX MATCHALL "(^| )-l[^ ]+" _netcdf_dashl ${NETCDF_LIBS})
++        string (REGEX REPLACE "(^| )-l" "" _netcdf_lib "${_netcdf_dashl}")
++        string (REGEX MATCHALL "(^| )-L[^ ]+" _netcdf_dashL ${NETCDF_LIBS})
++        string (REGEX REPLACE "(^| )-L" "" _netcdf_libpath "${_netcdf_dashL}")
++        if (_netcdf_lib)
++            list (REMOVE_DUPLICATES _netcdf_lib)
++            list (REMOVE_ITEM _netcdf_lib netcdf)
++        endif (_netcdf_lib)
++    endif (NETCDF_LIBS)
+ endif()
+ 
+ find_path(NETCDF_INCLUDE_DIR netcdf.h
+@@ -78,6 +95,54 @@
+               "${NETCDF_INCLUDE_DIR}/../lib"
+         HINTS "${NETCDF_PREFIX_DIR}/lib")
+ 
++# find all libs that nc-config reports
++foreach (_extralib ${_netcdf_lib})
++    find_library (_found_lib_${_extralib}
++        NAMES ${_extralib}
++        HINTS
++        ${HDF5_ROOT}
++        $ENV{HDF5_ROOT}
++        ${ZLIB_ROOT}
++        $ENV{ZLIB_ROOT}
++        ${CURL_ROOT}
++        $ENV{CURL_ROOT}
++        PATH_SUFFIXES lib
++        PATHS 
++        ${_netcdf_libpath}
++    )
++    list (APPEND NETCDF_LIBRARY ${_found_lib_${_extralib}})
++endforeach (_extralib)
++
++# find all manually-supplied libs
++if (NETCDF_EXTRA_LIBS)
++    # Ensure -l is preceded by whitespace to not match
++    # '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
++    string (REGEX MATCHALL "(^| )-l[^ ]+" _netcdf_extra_lib_dashl ${NETCDF_EXTRA_LIBS})
++    string (REGEX REPLACE "(^| )-l" "" _netcdf_extra_shared_lib "${_netcdf_extra_lib_dashl}")
++    string (REGEX MATCHALL "(^| )-L[^ ]+" _netcdf_extra_lib_dashL ${NETCDF_EXTRA_LIBS})
++    string (REGEX REPLACE "(^| )-L" "" _netcdf_extra_libpath "${_netcdf_extra_lib_dashL}")
++    foreach (_extralib ${_netcdf_extra_shared_lib})
++        find_library (_found_lib_${_extralib}
++            NAMES ${_extralib}
++            PATH_SUFFIXES lib
++            PATHS 
++            ${_netcdf_extra_libpath}
++        )
++        list (APPEND NETCDF_LIBRARY ${_found_lib_${_extralib}})
++    endforeach (_extralib)
++    # Retrieve static library names
++    string(REGEX MATCHALL "[a-zA-Z0-9]+\\.a" _netcdf_extra_static_lib "${NETCDF_EXTRA_LIBS}")
++    foreach (_extralib ${_netcdf_extra_static_lib})
++        find_library (_found_lib_${_extralib}
++            NAMES ${_extralib}
++            PATH_SUFFIXES lib
++            PATHS 
++            ${_netcdf_extra_libpath}
++        )
++        list (APPEND NETCDF_LIBRARY ${_found_lib_${_extralib}})
++    endforeach (_extralib)
++endif (NETCDF_EXTRA_LIBS)
++
+ if(NETCDF_INCLUDE_DIR AND NETCDF_LIBRARY)
+     set (NETCDF_C_INCLUDE_DIRS ${NETCDF_INCLUDE_DIR})
+     set (NETCDF_C_LIBRARIES ${NETCDF_LIBRARY})
+@@ -181,6 +246,8 @@
+     NetCDF_check_interface (F77 netcdf.inc  netcdff)
+     NetCDF_check_interface (F90 netcdf.mod  netcdff)
+ 
++
++
+     #export accumulated results to internal vars that rest of project can depend on
+     list (APPEND NetCDF_libs "${NETCDF_C_LIBRARIES}")
+     set (NETCDF_LIBRARIES ${NetCDF_libs})
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/mac/cmake/ConfigUserAdvancedTemplate.cmake.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/mac/cmake/ConfigUserAdvancedTemplate.cmake.patch	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.5/static/mac/cmake/ConfigUserAdvancedTemplate.cmake.patch	(revision 28161)
@@ -0,0 +1,84 @@
+--- src/cmake/ConfigUserAdvancedTemplate.cmake	2024-01-07 01:32:40
++++ ConfigUserAdvancedTemplate.cmake	2024-03-19 13:14:04
+@@ -39,19 +39,19 @@
+ ## Section 1: Installation paths
+ ##
+ # Set install name suffix used for directories and gmt executables [undefined]:
+-#set (GMT_INSTALL_NAME_SUFFIX "suffix")
++set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
+ 
+ # Install into traditional directory structure. Disable to install a
+ # distribution type directory structure (doc and share separated) [on]:
+ #set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+ 
+ # Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+-#set (GMT_INSTALL_RELOCATABLE TRUE)
++set (GMT_INSTALL_RELOCATABLE TRUE)
+ 
+ # Exclude optional GEOS, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+ #set (GMT_EXCLUDE_GEOS TRUE)
+-#set (GMT_EXCLUDE_PCRE TRUE)
+-#set (GMT_EXCLUDE_PCRE2 TRUE)
++set (GMT_EXCLUDE_PCRE TRUE)
++set (GMT_EXCLUDE_PCRE2 TRUE)
+ #set (GMT_EXCLUDE_FFTW3 TRUE)
+ #set (GMT_EXCLUDE_LAPACK TRUE)
+ #set (GMT_EXCLUDE_BLAS TRUE)
+@@ -100,11 +100,11 @@
+ 
+ # Set location of NetCDF (can be root directory, path to header file or path
+ # to nc-config) [auto]:
+-#set (NETCDF_ROOT "netcdf_install_prefix")
++set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+ 
+ # Set location of GDAL (can be root directory, path to header file or path to
+ # gdal-config) [auto]:
+-#set (GDAL_ROOT "gdal_install_prefix")
++set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+ 
+ # Set location of GEOS (can be root directory, path to header file or path to
+ # geos-config) [auto]:
+@@ -122,7 +122,7 @@
+ #set (FFTW3_ROOT "fftw_install_prefix")
+ 
+ # Set location of ZLIB (can be root directory or path to header file) [auto]:
+-#set (ZLIB_ROOT "zlib_install_prefix")
++set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+ 
+ # Set location of CURL (can be root directory or path to header file) [auto]:
+ #set (CURL_ROOT "curl_install_prefix")
+@@ -148,7 +148,7 @@
+ #set (LICENSE_RESTRICTED GPL)
+ 
+ # Allow building of OpenMP if compiler supports it
+-set (GMT_ENABLE_OPENMP TRUE)
++#set (GMT_ENABLE_OPENMP TRUE)
+ 
+ # Configure default units (possible values are SI and US) [SI]:
+ #set (UNITS "US")
+@@ -156,14 +156,14 @@
+ # Enable building of shared libraries [TRUE] (disable to use static libraries;
+ # not recommended; on non-x86 architectures uncomment the next option as well):
+ # NOTE: currently only support shared libraries
+-#set (BUILD_SHARED_LIBS FALSE)
++set (BUILD_SHARED_LIBS FALSE)
+ 
+ # Create position independent code on all targets [auto] (needed for static
+ # build on non-x86):
+ #set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+ 
+ # Build GMT shared lib with supplemental modules [TRUE]:
+-#set (BUILD_SUPPLEMENTS FALSE)
++set (BUILD_SUPPLEMENTS FALSE)
+ 
+ # Build/Install GMT Developer include files [TRUE]:
+ # This installs the extra include files and configured files needed by 3rd-party
+@@ -281,7 +281,7 @@
+ #set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+ 
+ # If your NetCDF library is static (not recommended, applies to Windows only)
+-#set (NETCDF_STATIC TRUE)
++set (NETCDF_STATIC TRUE)
+ 
+ # If want to rename the DLLs to something else than the default (e.g. to
+ # append the bitness - Windows only)
Index: sm/trunk-jpl/externalpackages/gmt/install-6-mac-intel-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac-intel-static.sh	(revision 28160)
+++ 	(revision )
@@ -1,80 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="6.0.0"
-
-# Find libgfortran and libgcc so we do not have to hardcode them
-#
-# TODO:
-# - Move this to etc/environment.sh
-# - Test if -static-libgfortran flag will avoid all of this.
-# - Otherwise, refactor this to work with other gfortran installations.
-#
-echo "Finding libgfortran..."
-LIBGFORTRAN=$(find /usr /opt -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
-LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
-LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
-
-GDAL_EXTRA_LIBS="-lc++" # `$GDAL_ROOT/bin/gdal-config --dep-libs` does not report need to link to libc++ (see also customized configuration file ./configs/6/static/cmake/modules/FindGDAL.cmake)
-NETCDF_EXTRA_LIBS="-lpthread -ldl -liconv" # `$NETCDF_ROOT/bin/nc-config --libs` does not report certain dependencies of certain static libraries (see also customized configuration file ./configs/6/static/cmake/modules/FindNETCDF.cmake)
-
-# Environment
-#
-export CC=mpicc
-export CURL_INCLUDE_DIRS="${CURL_ROOT}/include"
-export CURL_LIBRARIES="${CURL_ROOT}/lib/libcurl.a;${ZLIB_ROOT}/lib/libz.a"
-export LDFLAGS="-lsqlite3 -framework CoreFoundation -framework Security"
-export PREFIX="${ISSM_DIR}/externalpackages/gmt/install" # NOTE: Need to export this to be picked up by customized ConfigUser.cmake (see below). Set to location where external package should be installed.
-
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/gmt-${VER}.tar.gz" "gmt-${VER}.tar.gz"
-
-# Unpack source
-tar -zxvf gmt-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} src
-mkdir -p ${PREFIX} src
-
-# Move source to 'src' directory
-mv gmt-${VER}/* src
-rm -rf gmt-${VER}
-
-# Copy custom configuration files
-cp ./configs/6/static/mac/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
-cp ./configs/6/static/cmake/modules/FindGDAL.cmake ./src/cmake/modules
-cp ./configs/6/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules
-cp ./configs/6/static/cmake/modules/FindNETCDF.cmake ./src/cmake/modules
-
-# Configure
-cd src
-mkdir build
-cd build
-
-# NOTE:
-# - The CMake modules used to find and probe the BLAS and LAPACK libraries do
-#	not seem to handle the situation where BLAS_LIBRARY and LAPACK_LIBRARY are
-#	set but we are working with static libraries
-#	(see customized ConfigUser.static.cmake). Using BLAS_LIBRARIES and
-#	LAPACK_LIBRARIES is a workaround.
-#
-cmake \
-	-DBLAS_LIBRARIES="${BLAS_ROOT}/lib/libfblas.a;${LIBGFORTRAN_ROOT}/libgfortran.a;${LIBGFORTRAN_ROOT}/libquadmath.a;${LIBGCC}" \
-	-DCURL_INCLUDE_DIR="${CURL_ROOT}/include" \
-	-DCURL_LIBRARY="${CURL_ROOT}/lib/libcurl.a" \
-	-DGDAL_EXTRA_LIBS="${GDAL_EXTRA_LIBS}" \
-	-DLAPACK_LIBRARIES="${LAPACK_ROOT}/lib/libflapack.a;${LIBGFORTRAN_ROOT}/libgfortran.a;${LIBGFORTRAN_ROOT}/libquadmath.a;${LIBGCC}" \
-	-DNETCDF_EXTRA_LIBS="${NETCDF_EXTRA_LIBS}" \
-	..
-
-# Compile and install
-if [ $# -eq 0 ]; then
-	make
-	make install
-else
-	make -j $1
-	make -j $1 install
-fi
Index: sm/trunk-jpl/externalpackages/gmt/install-6-mac-silicon-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac-silicon-static.sh	(revision 28160)
+++ 	(revision )
@@ -1,84 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="6.0.0"
-
-# Find libgfortran and libgcc so we do not have to hardcode them
-#
-# TODO:
-# - Move this to etc/environment.sh
-# - Test if -static-libgfortran flag will avoid all of this.
-# - Otherwise, refactor this to work with other gfortran installations.
-#
-echo "Finding libgfortran..."
-LIBGFORTRAN=$(find /usr /opt -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
-LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
-LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
-
-GDAL_EXTRA_LIBS="-lc++" # `$GDAL_ROOT/bin/gdal-config --dep-libs` does not report need to link to libc++ (see also customized configuration file ./configs/6/static/cmake/modules/FindGDAL.cmake)
-NETCDF_EXTRA_LIBS="-lpthread -ldl -liconv" # `$NETCDF_ROOT/bin/nc-config --libs` does not report certain dependencies of certain static libraries (see also customized configuration file ./configs/6/static/cmake/modules/FindNETCDF.cmake)
-
-# Environment
-#
-export CC=mpicc
-export CURL_INCLUDE_DIRS="${CURL_ROOT}/include"
-export CURL_LIBRARIES="${CURL_ROOT}/lib/libcurl.a;${ZLIB_ROOT}/lib/libz.a"
-export LDFLAGS="-lsqlite3 -framework CoreFoundation -framework Security"
-export PREFIX="${ISSM_DIR}/externalpackages/gmt/install" # NOTE: Need to export this to be picked up by customized ConfigUser.cmake (see below). Set to location where external package should be installed.
-
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/gmt-${VER}.tar.gz" "gmt-${VER}.tar.gz"
-
-# Unpack source
-tar -zxvf gmt-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} src
-mkdir -p ${PREFIX} src
-
-# Move source to 'src' directory
-mv gmt-${VER}/* src
-rm -rf gmt-${VER}
-
-# Copy custom configuration files
-cp ./configs/6/static/mac/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
-cp ./configs/6/static/cmake/modules/FindGDAL.cmake ./src/cmake/modules
-cp ./configs/6/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules
-cp ./configs/6/static/cmake/modules/FindNETCDF.cmake ./src/cmake/modules
-
-# Apply patches
-patch ./src/src/common_sighandler.c < ./configs/6/static/mac/patches/src/common_sighandler.c.patch
-
-
-# Configure
-cd src
-mkdir build
-cd build
-
-# NOTE:
-# - The CMake modules used to find and probe the BLAS and LAPACK libraries do
-#	not seem to handle the situation where BLAS_LIBRARY and LAPACK_LIBRARY are
-#	set but we are working with static libraries
-#	(see customized ConfigUser.static.cmake). Using BLAS_LIBRARIES and
-#	LAPACK_LIBRARIES is a workaround.
-#
-cmake \
-	-DBLAS_LIBRARIES="${BLAS_ROOT}/lib/libfblas.a;${LIBGFORTRAN_ROOT}/libgfortran.a;${LIBGFORTRAN_ROOT}/libquadmath.a;${LIBGCC}" \
-	-DCURL_INCLUDE_DIR="${CURL_ROOT}/include" \
-	-DCURL_LIBRARY="${CURL_ROOT}/lib/libcurl.a" \
-	-DGDAL_EXTRA_LIBS="${GDAL_EXTRA_LIBS}" \
-	-DLAPACK_LIBRARIES="${LAPACK_ROOT}/lib/libflapack.a;${LIBGFORTRAN_ROOT}/libgfortran.a;${LIBGFORTRAN_ROOT}/libquadmath.a;${LIBGCC}" \
-	-DNETCDF_EXTRA_LIBS="${NETCDF_EXTRA_LIBS}" \
-	..
-
-# Compile and install
-if [ $# -eq 0 ]; then
-	make
-	make install
-else
-	make -j $1
-	make -j $1 install
-fi
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 28161)
@@ -0,0 +1,85 @@
+#!/bin/bash
+set -eu
+
+
+## Constants
+#
+VER="6.5.0"
+
+# Find certain libraries so we do not have to hardcode them
+#
+# TODO:
+# - Move this to etc/environment.sh
+# - Test if -static-libgfortran flag will avoid all of this.
+# - Otherwise, refactor this to work with other gfortran installations.
+#
+echo "Finding libgfortran..."
+LIBGFORTRAN=$(find /usr /opt -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
+LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
+LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
+echo "Finding libssl..."
+LIBSSL=$(find /usr /opt -name libssl* 2>/dev/null | egrep -n libssl.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
+
+GDAL_EXTRA_LIBS="-lc++" # `$GDAL_ROOT/bin/gdal-config --dep-libs` does not report need to link to libc++ (see also customized configuration file ./configs/6/static/cmake/modules/FindGDAL.cmake)
+NETCDF_EXTRA_LIBS="-lpthread -ldl -liconv" # `$NETCDF_ROOT/bin/nc-config --libs` does not report certain dependencies of certain static libraries (see also customized configuration file ./configs/6/static/cmake/modules/FindNETCDF.cmake)
+
+# Environment
+#
+export CC=mpicc
+export CURL_INCLUDE_DIRS="${CURL_ROOT}/include"
+export CURL_LIBRARIES="${CURL_ROOT}/lib/libcurl.a;${ZLIB_ROOT}/lib/libz.a"
+export LDFLAGS="-lsqlite3 -framework CoreFoundation -framework Security"
+export PREFIX="${ISSM_DIR}/externalpackages/gmt/install" # NOTE: Need to export this to be picked up by customized ConfigUser.cmake (see below). Set to location where external package should be installed.
+
+# Download source
+$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/gmt-${VER}.tar.gz" "gmt-${VER}.tar.gz"
+
+# Unpack source
+tar -zxvf gmt-${VER}.tar.gz
+
+# Cleanup
+rm -rf ${PREFIX} src
+mkdir -p ${PREFIX} src
+
+# Move source to 'src' directory
+mv gmt-${VER}/* src
+rm -rf gmt-${VER}
+
+# Copy custom configuration files to source
+cp ./src/cmake/ConfigUserAdvancedTemplate.cmake ./src/cmake/ConfigUser.cmake
+
+# Patch source
+patch ./src/cmake/ConfigUser.cmake < ./configs/${VER%.*}/static/mac/cmake/ConfigUserAdvancedTemplate.cmake.patch
+patch ./src/cmake/modules/FindGDAL.cmake < ./configs/${VER%.*}/static/cmake/modules/FindGDAL.cmake.patch
+patch ./src/cmake/modules/FindGSHHG.cmake < ./configs/${VER%.*}/static/cmake/modules/FindGSHHG.cmake.patch
+patch ./src/cmake/modules/FindNETCDF.cmake < ./configs/${VER%.*}/cmake/modules/FindNETCDF.cmake.patch
+
+# Configure
+cd src
+mkdir build
+cd build
+
+# NOTE:
+# - The CMake modules used to find and probe the BLAS and LAPACK libraries do
+#	not seem to handle the situation where BLAS_LIBRARY and LAPACK_LIBRARY are
+#	set but we are working with static libraries
+#	(see customized ConfigUser.static.cmake). Using BLAS_LIBRARIES and
+#	LAPACK_LIBRARIES is a workaround.
+#
+cmake \
+	-DBLAS_LIBRARIES="${BLAS_ROOT}/lib/libfblas.a;${LIBGFORTRAN_ROOT}/libgfortran.a;${LIBGFORTRAN_ROOT}/libquadmath.a;${LIBGCC}" \
+	-DCURL_INCLUDE_DIR="${CURL_ROOT}/include" \
+	-DCURL_LIBRARY="${CURL_ROOT}/lib/libcurl.a;${LIBSSL}" \
+	-DGDAL_EXTRA_LIBS="${GDAL_EXTRA_LIBS}" \
+	-DLAPACK_LIBRARIES="${LAPACK_ROOT}/lib/libflapack.a;${LIBGFORTRAN_ROOT}/libgfortran.a;${LIBGFORTRAN_ROOT}/libquadmath.a;${LIBGCC}" \
+	-DNETCDF_EXTRA_LIBS="${NETCDF_EXTRA_LIBS}" \
+	..
+
+# Compile and install
+if [ $# -eq 0 ]; then
+	make
+	make install
+else
+	make -j $1
+	make -j $1 install
+fi
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.20-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.20-mac-static.sh	(revision 28161)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.20-mac-static.sh	(revision 28161)
@@ -0,0 +1,69 @@
+#!/bin/bash
+set -eu
+
+
+## Constants
+#
+VER="3.20.5"
+
+PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
+PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
+
+# Download source
+$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
+
+# Unpack source
+tar -zxvf petsc-${VER}.tar.gz
+
+# Cleanup
+rm -rf ${PREFIX} ${PETSC_DIR}
+mkdir -p ${PETSC_DIR}
+
+# Move source to $PETSC_DIR
+mv petsc-${VER}/* ${PETSC_DIR}
+rm -rf petsc-${VER}
+
+# Configure
+#
+# NOTE:
+# - Cannot use --with-fpic option when compiling static libs,
+#
+#		Cannot determine compiler PIC flags if shared libraries is turned off
+#		Either run using --with-shared-libraries or --with-pic=0 and supply the
+#		compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
+#
+cd ${PETSC_DIR}
+./configure \
+	--prefix="${PREFIX}" \
+	--PETSC_DIR="${PETSC_DIR}" \
+	--LDFLAGS="${LDFLAGS}" \
+	--with-shared-libraries=0 \
+	--CFLAGS="-fPIC" \
+	--CXXFLAGS="-fPIC" \
+	--FFLAGS="-fPIC" \
+	--with-debugging=0 \
+	--with-valgrind=0 \
+	--with-x=0 \
+	--with-ssl=0 \
+	--download-fblaslapack=1 \
+	--download-mpich="https://www.mpich.org/static/downloads/4.2.0/mpich-4.2.0.tar.gz" \
+	--download-metis=1 \
+	--download-parmetis=1 \
+	--download-scalapack=1 \
+	--download-mumps=1 \
+	--download-zlib=1
+
+# Compile and install
+make
+make install
+
+# Need to make symlinks from libmpich* to libmpi*
+ln -s ${PREFIX}/lib/libmpi.a ${PREFIX}/lib/libmpich.a
+ln -s ${PREFIX}/lib/libmpicxx.a ${PREFIX}/lib/libmpichcxx.a
+ln -s ${PREFIX}/lib/libmpifort.a ${PREFIX}/lib/libmpichf90.a
+
+# Need to make sure classic linker is used (should be able to remove this once MPICH fixes it)
+if [[ ${LDFLAGS} =~ "-Wl,-ld_classic" ]]; then
+	sed -i'' -e 's/-Wl,-commons,use_dylibs//g' ${PREFIX}/bin/mpicc
+	sed -i'' -e 's/-Wl,-commons,use_dylibs//g' ${PREFIX}/bin/mpicxx
+fi
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.20-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.20-mac.sh	(revision 28160)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.20-mac.sh	(revision 28161)
@@ -23,7 +23,4 @@
 mv petsc-${VER}/* ${PETSC_DIR}
 rm -rf petsc-${VER}
-
-# Apply patches
-patch src/config/BuildSystem/config/setCompilers.py < configs/3.20/mac/intel/src/config/BuildSystem/config/setCompilers.py.patch
 
 # Configure
Index: /issm/trunk-jpl/jenkins/mac-intel-binaries-matlab
===================================================================
--- /issm/trunk-jpl/jenkins/mac-intel-binaries-matlab	(revision 28160)
+++ /issm/trunk-jpl/jenkins/mac-intel-binaries-matlab	(revision 28161)
@@ -1,3 +1,5 @@
 MATLAB_PATH="/Applications/MATLAB_R2023b.app"
+LIBGFORTRAN_PATH="/usr/local/Cellar/gcc/13.2.0/lib/gcc/current"
+LIBGCC_PATH="${LIBGFORTRAN_PATH}/gcc/x86_64-apple-darwin21/13"
 
 #--------------------#
@@ -20,5 +22,5 @@
 	--disable-dependency-tracking \
 	--with-matlab-dir=${MATLAB_PATH} \
-	--with-fortran-lib="/usr/local/Cellar/gcc/13.2.0/lib/gcc/current/libgfortran.a /usr/local/Cellar/gcc/13.2.0/lib/gcc/current/libquadmath.a /usr/local/Cellar/gcc/13.2.0/lib/gcc/current/gcc/x86_64-apple-darwin21/13/libgcc.a" \
+	--with-fortran-lib="${LIBGFORTRAN_PATH}/libgfortran.a ${LIBGFORTRAN_PATH}/libquadmath.a ${LIBGCC_PATH}/libgcc.a" \
 	--with-mpi-include=${ISSM_DIR}/externalpackages/petsc/install/include \
 	--with-mpi-libflags="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
@@ -58,5 +60,5 @@
 	gdal		install-3-static.sh
 	gshhg		install.sh
-	gmt			install-6-mac-intel-static.sh
+	gmt			install-6-mac-static.sh
 	gmsh		install-4-mac-static.sh
 	triangle	install-mac-static.sh
Index: /issm/trunk-jpl/jenkins/mac-intel-binaries-python-3
===================================================================
--- /issm/trunk-jpl/jenkins/mac-intel-binaries-python-3	(revision 28160)
+++ /issm/trunk-jpl/jenkins/mac-intel-binaries-python-3	(revision 28161)
@@ -1,2 +1,6 @@
+MATLAB_PATH="/Applications/MATLAB_R2023b.app"
+LIBGFORTRAN_PATH="/usr/local/Cellar/gcc/13.2.0/lib/gcc/current"
+LIBGCC_PATH="${LIBGFORTRAN_PATH}/gcc/x86_64-apple-darwin21/13"
+
 #--------------------#
 # ISSM Configuration #
@@ -20,5 +24,5 @@
 	--with-python-dir=/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9 \
 	--with-python-numpy-dir=/Library/Python/3.9/site-packages/numpy/core/include/numpy \
-	--with-fortran-lib="/usr/local/Cellar/gcc/13.2.0/lib/gcc/current/libgfortran.a /usr/local/Cellar/gcc/13.2.0/lib/gcc/current/libquadmath.a /usr/local/Cellar/gcc/13.2.0/lib/gcc/current/gcc/x86_64-apple-darwin21/13/libgcc.a" \
+	--with-fortran-lib="${LIBGFORTRAN_PATH}/libgfortran.a ${LIBGFORTRAN_PATH}/libquadmath.a ${LIBGCC_PATH}/libgcc.a" \
 	--with-mpi-include=${ISSM_DIR}/externalpackages/petsc/install/include \
 	--with-mpi-libflags="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
@@ -58,5 +62,5 @@
 	gdal		install-3-python-static.sh
 	gshhg		install.sh
-	gmt			install-6-mac-intel-static.sh
+	gmt			install-6-mac-static.sh
 	gmsh		install-4-mac-static.sh
 	triangle	install-mac-static.sh
Index: /issm/trunk-jpl/jenkins/mac-silicon-binaries-matlab
===================================================================
--- /issm/trunk-jpl/jenkins/mac-silicon-binaries-matlab	(revision 28160)
+++ /issm/trunk-jpl/jenkins/mac-silicon-binaries-matlab	(revision 28161)
@@ -1,5 +1,5 @@
 MATLAB_PATH="/Applications/MATLAB_R2023b.app"
-LIBGFORTRAN_PATH="/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/13"
-LIBGCC_PATH="${LIBGFORTRAN_PATH}/aarch64-apple-darwin22/13"
+LIBGFORTRAN_PATH="/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current"
+LIBGCC_PATH="${LIBGFORTRAN_PATH}/gcc/aarch64-apple-darwin23/13"
 
 #--------------------#
@@ -63,5 +63,5 @@
 	gdal		install-3-static.sh
 	gshhg		install.sh
-	gmt			install-6-mac-silicon-static.sh
+	gmt			install-6-mac-static.sh
 	gmsh		install-4-mac-static.sh
 	triangle	install-mac-static.sh
Index: /issm/trunk-jpl/jenkins/mac-silicon-binaries-python-3
===================================================================
--- /issm/trunk-jpl/jenkins/mac-silicon-binaries-python-3	(revision 28160)
+++ /issm/trunk-jpl/jenkins/mac-silicon-binaries-python-3	(revision 28161)
@@ -1,4 +1,5 @@
-LIBGFORTRAN_PATH="/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/13"
-LIBGCC_PATH="${LIBGFORTRAN_PATH}/aarch64-apple-darwin22/13"
+MATLAB_PATH="/Applications/MATLAB_R2023b.app"
+LIBGFORTRAN_PATH="/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current"
+LIBGCC_PATH="${LIBGFORTRAN_PATH}/gcc/aarch64-apple-darwin23/13"
 
 #--------------------#
@@ -62,5 +63,5 @@
 	gdal		install-3-python-static.sh
 	gshhg		install.sh
-	gmt			install-6-mac-silicon-static.sh
+	gmt			install-6-mac-static.sh
 	gmsh		install-4-mac-static.sh
 	triangle	install-mac-static.sh
Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 28160)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 28161)
@@ -198,6 +198,14 @@
 			dnl When standard Dakota installation has been updated to new 
 			dnl version, remove the following
-			export CFLAGS="-Wno-deprecated-register -Wno-return-type"
-			export CXXFLAGS="-Wno-deprecated-register -Wno-return-type"
+			if test -z "${CFLAGS}"; then
+				export CFLAGS="-Wno-deprecated-register -Wno-return-type"
+			else
+				export CFLAGS="${CFLAGS} -Wno-deprecated-register -Wno-return-type"
+			fi
+			if test -z "${CXXFLAGS+x}"; then
+				export CXXFLAGS="-Wno-deprecated-register -Wno-return-type"
+			else
+				export CXXFLAGS="${CXXFLAGS} -Wno-deprecated-register -Wno-return-type"
+			fi
 			dnl NOTE: Commenting out the following, for now, as ISSM seems to 
 			dnl 	  compile and run fine, but certain errors (e.g. file not 
@@ -541,4 +549,9 @@
 	dnl Boost libraries and header files
 	if test "x${HAVE_BOOST}" == "xyes"; then
+		if test -z "${CXXFLAGS+x}"; then
+			export CXXFLAGS="-Wno-deprecated"
+		else
+			export CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
+		fi
 		BOOSTINCL="-I${BOOST_ROOT}/include"
 		#BOOSTLIB="-L$BOOST_ROOT/lib -lboost_python"
Index: /issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-matlab.sh
===================================================================
--- /issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-matlab.sh	(revision 28160)
+++ /issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-matlab.sh	(revision 28161)
@@ -17,4 +17,7 @@
 # See also:
 # - packagers/linux/complete-issm-linux-binaries-matlab.sh
+#
+# TODO:
+# - Make sure that all TPL licenses are copied to package
 ################################################################################
 
@@ -71,4 +74,7 @@
 cat generic_static.m | sed -e "s/generic_static/generic/g" > generic.m
 
+echo "Moving libgfortran to lib/"
+cp ${LIBGFORTRAN} ${LIBGFORTRAN_DIST} 2> /dev/null
+
 echo "Moving MPICH binaries to bin/"
 if [ -f ${ISSM_DIR}/externalpackages/petsc/install/bin/mpiexec ]; then
@@ -109,11 +115,8 @@
 fi
 
-echo "Moving libgfortran to lib/"
-cp ${LIBGFORTRAN} ${LIBGFORTRAN_DIST} 2> /dev/null
-
 echo "Moving GSHHG assets to share/"
-if [ -d ${ISSM_DIR}/externalpackages/gmt/install/share/coast ]; then
+if [ -d ${ISSM_DIR}/externalpackages/gshhg/install ]; then
 	mkdir ${ISSM_DIR}/share 2> /dev/null
-	cp -R ${ISSM_DIR}/externalpackages/gmt/install/share/coast ${ISSM_DIR}/share
+	cp -R ${ISSM_DIR}/externalpackages/gshhg/install/*.nc ${ISSM_DIR}/share
 else
 	echo "GSHHG not found"
Index: /issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-python-3.sh
===================================================================
--- /issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-python-3.sh	(revision 28160)
+++ /issm/trunk-jpl/packagers/linux/package-issm-linux-binaries-python-3.sh	(revision 28161)
@@ -17,4 +17,7 @@
 # See also:
 # - packagers/linux/complete-issm-linux-binaries-python-3.sh
+#
+# TODO:
+# - Make sure that all TPL licenses are copied to package
 ################################################################################
 
@@ -64,4 +67,7 @@
 cat generic_static.py | sed -e "s/generic_static/generic/g" > generic.py
 
+echo "Moving libgfortran to lib/"
+cp ${LIBGFORTRAN} ${LIBGFORTRAN_DIST} 2> /dev/null
+
 echo "Moving MPICH binaries to bin/"
 if [ -f ${ISSM_DIR}/externalpackages/petsc/install/bin/mpiexec ]; then
@@ -102,11 +108,8 @@
 fi
 
-echo "Moving libgfortran to lib/"
-cp ${LIBGFORTRAN} ${LIBGFORTRAN_DIST} 2> /dev/null
-
 echo "Moving GSHHG assets to share/"
-if [ -d ${ISSM_DIR}/externalpackages/gmt/install/share/coast ]; then
+if [ -d ${ISSM_DIR}/externalpackages/gshhg/install ]; then
 	mkdir ${ISSM_DIR}/share 2> /dev/null
-	cp -R ${ISSM_DIR}/externalpackages/gmt/install/share/coast ${ISSM_DIR}/share
+	cp -R ${ISSM_DIR}/externalpackages/gshhg/install/*.nc ${ISSM_DIR}/share
 else
 	echo "GSHHG not found"
Index: /issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-matlab.sh
===================================================================
--- /issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-matlab.sh	(revision 28160)
+++ /issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-matlab.sh	(revision 28161)
@@ -19,4 +19,7 @@
 # See also:
 # - packagers/mac/<ARCH>/complete-issm-mac-<ARCH>-binaries-matlab.sh
+#
+# TODO:
+# - Make sure that all TPL licenses are copied to package
 ################################################################################
 
@@ -116,7 +119,7 @@
 
 echo "Moving GSHHG assets to share/"
-if [ -d ${ISSM_DIR}/externalpackages/gmt/install/share/coast ]; then
+if [ -d ${ISSM_DIR}/externalpackages/gshhg/install ]; then
 	mkdir ${ISSM_DIR}/share 2> /dev/null
-	cp -R ${ISSM_DIR}/externalpackages/gmt/install/share/coast ${ISSM_DIR}/share
+	cp -R ${ISSM_DIR}/externalpackages/gshhg/install/*.nc ${ISSM_DIR}/share
 else
 	echo "GSHHG not found"
Index: /issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-python-3.sh
===================================================================
--- /issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-python-3.sh	(revision 28160)
+++ /issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-python-3.sh	(revision 28161)
@@ -18,4 +18,7 @@
 # See also:
 # - packagers/mac/<ARCH>/complete-issm-mac-<ARCH>-binaries-python-3.sh
+#
+# TODO:
+# - Make sure that all TPL licenses are copied to package
 ################################################################################
 
@@ -108,7 +111,7 @@
 
 echo "Moving GSHHG assets to share/"
-if [ -d ${ISSM_DIR}/externalpackages/gmt/install/share/coast ]; then
+if [ -d ${ISSM_DIR}/externalpackages/gshhg/install ]; then
 	mkdir ${ISSM_DIR}/share 2> /dev/null
-	cp -R ${ISSM_DIR}/externalpackages/gmt/install/share/coast ${ISSM_DIR}/share
+	cp -R ${ISSM_DIR}/externalpackages/gshhg/install/*.nc ${ISSM_DIR}/share
 else
 	echo "GSHHG not found"
