source: issm/oecreview/Archive/24307-24683/ISSM-24452-24453.diff

Last change on this file was 24684, checked in by Mathieu Morlighem, 5 years ago

CHG: added new review

File size: 12.4 KB
RevLine 
[24684]1Index: ../trunk-jpl/externalpackages/gmt/configs/Linux/cmake/ConfigUser.cmake
2===================================================================
3--- ../trunk-jpl/externalpackages/gmt/configs/Linux/cmake/ConfigUser.cmake (revision 24452)
4+++ ../trunk-jpl/externalpackages/gmt/configs/Linux/cmake/ConfigUser.cmake (nonexistent)
5@@ -1,308 +0,0 @@
6-#
7-#
8-# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
9-# See LICENSE.TXT file for copying and redistribution conditions.
10-#
11-# This program is free software; you can redistribute it and/or modify it
12-# under the terms of the GNU Lesser General Public License as published by the
13-# Free Software Foundation; version 3 or any later version.
14-#
15-# This program is distributed in the hope that it will be useful, but WITHOUT
16-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
18-# for more details.
19-#
20-# Contact info: www.generic-mapping-tools.org
21-# ----------------------------------------------------------------------------
22-
23-# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
24-# basis. First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
25-# edit 'ConfigUser.cmake'. 'ConfigUser.cmake' is not version controlled
26-# (currently listed in .gitignore).
27-#
28-# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
29-# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
30-# "False", "off", "no", and "something-NotFound" are all false). Other values
31-# are true. Thus it does not matter whether you use TRUE and FALSE, ON and
32-# OFF, or YES and NO for your booleans.
33-
34-##
35-## Section 1: Installation paths
36-##
37-
38-# ============================================================================
39-# Basic setup begins here. All settings are optional. In most cases, setting
40-# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
41-# reasonable defaults enabled. Note: If you need to specify directory names
42-# with spaces (e.g., on Windows) then you must put them in quotes.
43-# ============================================================================
44-
45-# Installation path (usually defaults to /usr/local) [auto]:
46-set (CMAKE_INSTALL_PREFIX "$ENV{ISSM_DIR}/externalpackages/gmt/install")
47-
48-# Set install name suffix used for directories and gmt executables
49-# [undefined]:
50-#set (GMT_INSTALL_NAME_SUFFIX "suffix")
51-
52-# Install into traditional directory structure. Disable to install a
53-# distribution type directory structure (doc and share separated) [on]:
54-#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
55-
56-# Install convenience links for GMT modules. Disable to install only the main
57-# gmt program and access modules as "gmt modulename options" [TRUE]:
58-#set (GMT_INSTALL_MODULE_LINKS FALSE)
59-
60-# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
61-set (GMT_INSTALL_RELOCATABLE TRUE)
62-
63-# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
64-#set (GMT_EXCLUDE_GDAL TRUE)
65-#set (GMT_EXCLUDE_PCRE TRUE)
66-#set (GMT_EXCLUDE_PCRE2 TRUE)
67-#set (GMT_EXCLUDE_FFTW3 TRUE)
68-#set (GMT_EXCLUDE_LAPACK TRUE)
69-#set (GMT_EXCLUDE_BLAS TRUE)
70-#set (GMT_EXCLUDE_ZLIB TRUE)
71-
72-# ============================================================================
73-# Advanced configuration begins here. Usually it is not necessary to edit any
74-# settings below. You should know what you are doing if you do though. Note:
75-# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
76-# path is given.
77-# ============================================================================
78-
79-# Set binary installation path [bin]:
80-#set (GMT_BINDIR "bin")
81-
82-# Set library installation path [lib or lib64]:
83-#set (GMT_LIBDIR "lib")
84-
85-# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
86-#set (GMT_INCLUDEDIR "include/gmt")
87-
88-# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
89-#set (GMT_DATADIR "share/gmt")
90-
91-# Set doc installation path [share/doc or
92-# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
93-#set (GMT_DOCDIR "share/doc/gmt")
94-
95-# Set manpage installation path [share/man or
96-# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
97-#set (GMT_MANDIR "share/doc/gmt/man")
98-
99-# Install documentation files from this external location instead of creating
100-# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
101-#set (GMT_INSTALL_EXTERNAL_DOC OFF)
102-
103-# Install manual pages from this external location instead of creating the
104-# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
105-#set (GMT_INSTALL_EXTERNAL_MAN OFF)
106-
107-##
108-## Section 2: Build dependencies (should only be needed if CMake cannot
109-## automatically detect the rights version or path.)
110-##
111-
112-# Set URL to GMT Data server [auto]:
113-#set (GMT_DATA_SERVER "data_server_url")
114-
115-# Set path to GSHHG Shoreline Database [auto]:
116-set (GSHHG_ROOT "$ENV{ISSM_DIR}/externalpackages/gshhg/install")
117-
118-# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
119-#set (COPY_GSHHG TRUE)
120-
121-# Set path to DCW Digital Chart of the World for GMT [auto]:
122-#set (DCW_ROOT "dcw-gmt_path")
123-
124-# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
125-#set (COPY_DCW TRUE)
126-
127-# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
128-#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
129-
130-# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
131-#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
132-
133-# FOR WINDOWS ONLY
134-# Set path to location of Ghostscript binaries (optional install)
135-#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
136-
137-# FOR WINDOWS ONLY
138-# Set path to location where the gmtmex is located.
139-#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
140-
141-# Set location of NetCDF (can be root directory, path to header file or path
142-# to nc-config) [auto]:
143-set (NETCDF_ROOT "$ENV{ISSM_DIR}/externalpackages/petsc/install")
144-
145-# Set location of GDAL (can be root directory, path to header file or path to
146-# gdal-config) [auto]:
147-set (GDAL_ROOT "$ENV{ISSM_DIR}/externalpackages/gdal/install")
148-
149-# Set location of PCRE (can be root directory, path to header file or path to
150-# pcre-config) [auto]:
151-#set (PCRE_ROOT "pcre_install_prefix")
152-# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
153-# pcre2-config) [auto]:
154-#set (PCRE2_ROOT "pcre2_install_prefix")
155-
156-# Set location of single precision FFTW (can be root directory or path to
157-# header file) [auto]:
158-#set (FFTW3_ROOT "fftw_install_prefix")
159-
160-# Set location of ZLIB (can be root directory or path to header file) [auto]:
161-set (ZLIB_ROOT "$ENV{ISSM_DIR}/externalpackages/petsc/install")
162-
163-# Set location of CURL (can be root directory or path to header file) [auto]:
164-#set (CURL_ROOT "curl_install_prefix")
165-
166-# Set location of GLIB component gthread [auto]. This is an optional (and
167-# experimental) option which you need to enable:
168-#set (GMT_USE_THREADS TRUE)
169-# If pkg-config is not installed (e.g. on Windows) you need to specify these:
170-#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
171-#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
172-
173-# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
174-set (LAPACK_LIBRARY "-L$ENV{ISSM_DIR}/externalpackages/lapack/install/lib -llapack")
175-set (BLAS_LIBRARY "-L$ENV{ISSM_DIR}/externalpackages/lapack/install/lib -lblas")
176-
177-##
178-## Section 3: GMT features
179-##
180-
181-# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
182-# redistributed under the terms of the GPL or LGPL such as Shewchuk's
183-# triangulation (valid values are GPL, LGPL and off) [off]:
184-#set (LICENSE_RESTRICTED GPL)
185-
186-# Allow building of OpenMP if compiler supports it
187-# set (GMT_ENABLE_OPENMP TRUE)
188-
189-# Configure default units (possible values are SI and US) [SI]:
190-#set (UNITS "US")
191-
192-# Enable building of shared libraries [TRUE] (disable to use static libraries;
193-# not recommended; on non-x86 architectures uncomment the next option as well):
194-#set (BUILD_SHARED_LIBS FALSE)
195-
196-# Create position independent code on all targets [auto] (needed for static
197-# build on non-x86):
198-#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
199-
200-# Build GMT shared lib with supplemental modules [TRUE]:
201-#set (BUILD_SUPPLEMENTS FALSE)
202-
203-# Build/Install GMT Developer include files [TRUE]:
204-# This installs the extra include files and configured files needed by 3rd-party
205-# developers. Until we build a separate gmt-devel we include them in the main
206-# Distribution.
207-#set (BUILD_DEVELOPER FALSE)
208-
209-##
210-## Section 4: Advanced tweaking
211-##
212-
213-#
214-# Testing and development
215-#
216-
217-# Enable running examples/tests with "ctest" or "make check" (out-of-source).
218-# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
219-# line.
220-#enable_testing()
221-#set (DO_EXAMPLES TRUE)
222-#set (DO_TESTS TRUE)
223-#set (DO_ANIMATIONS TRUE)
224-# Number of parallel test jobs with "make check":
225-#set (N_TEST_JOBS 4)
226-
227-# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
228-# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
229-# for testing [OFF]:
230-#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
231-
232-# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
233-# that link against the full gmt libs (not just the API; for building codes
234-# that only need the GMT API, see the gmt-custom project).
235-#set (EXTRA_BUILD_DIRS apidemo)
236-# Uncomment the following line to enable running low-level C tests of the API
237-#set (DO_API_TESTS ON)
238-
239-# Directory in which to install the release sources per default
240-# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
241-#set (GMT_RELEASE_PREFIX "release-src-prefix")
242-
243-# If set to false, image conversion from PS images to PNG and PDF does
244-# not depend on the gmt binary target. Note: "make gmt" is then required
245-# before docs_depends [TRUE].
246-#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
247-
248-#
249-# Debugging
250-#
251-
252-# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
253-# [Release]:
254-#set (CMAKE_BUILD_TYPE Debug)
255-
256-# Extra debugging for developers:
257-#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
258-## So Xcode can find the supplemental plug-ins during debug sessions
259-# add_definitions(-DXCODER)
260-# add_definitions(-DDEBUG_MODERN) # To set PPID == 0 during Xcode test
261-# message("Add Xcode definition for GMT")
262-#endif()
263-#add_definitions(-DDEBUG)
264-#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
265-#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
266-#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") # extra warnings
267-#set (CMAKE_C_FLAGS_DEBUG -ggdb3) # gdb debugging symbols
268-#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE) # debug link dependencies
269-if (HAVE_OPENMP)
270- set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions") # check uninitialized variables
271-else (HAVE_OPENMP)
272- set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized") # check uninitialized variables
273-endif (HAVE_OPENMP)
274-
275-#
276-# System specific tweaks
277-#
278-
279-# This is for GCC on Solaris to avoid "relocations remain against allocatable
280-# but non-writable sections" problems:
281-#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
282-
283-# This may be needed to enable strdup and extended math functions with GCC and
284-# Suncc on Solaris:
285-#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
286-
287-# Do not warn when building with Windows SDK or Visual Studio Express:
288-#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
289-
290-# Manually select runtime library when compiling with Windows SDK or Visual
291-# Studio Express:
292-#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
293-
294-# If your NetCDF library is static (not recommended, applies to Windows only)
295-#set (NETCDF_STATIC TRUE)
296-
297-# If want to rename the DLLs to something else than the default (e.g. to
298-# append the bitness - Windows only)
299-# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
300-#if (WIN32)
301-# set (BITAGE 32)
302-# # Detect if we are building a 32 or 64 bits version
303-# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
304-# set (BITAGE 64)
305-# endif ()
306-# set (GMT_DLL_RENAME gmt_w${BITAGE})
307-# set (PSL_DLL_RENAME psl_w${BITAGE})
308-#endif(WIN32)
309-
310-# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
311-#if(MSVC11)
312-# add_definitions(/D_ALLOW_KEYWORD_MACROS)
313-#endif(MSVC11)
Note: See TracBrowser for help on using the repository browser.