From 9488b26ca5b7ea763db4e210b311bcf3f04233ca Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 2 Dec 2020 15:41:53 +0100 Subject: Add build time option to make PROJ_LIB env var tested last (fixes #2399) If PROJ is built with the PROJ_LIB_ENV_VAR_TRIED_LAST CMake option / --enable-proj-lib-env-var-tried-last configure switch, then the hard-wired path ($prefix/share/proj) will be tried before looking at the environment PROJ_LIB. --- docs/source/resource_files.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/source/resource_files.rst b/docs/source/resource_files.rst index ae3a808d..2ae8824f 100644 --- a/docs/source/resource_files.rst +++ b/docs/source/resource_files.rst @@ -60,6 +60,11 @@ The following paths are checked in order: that since this is a hard-wired path setting, it only works if the whole PROJ installation is not moved somewhere else. + .. note:: if PROJ is built with the PROJ_LIB_ENV_VAR_TRIED_LAST CMake option / + --enable-proj-lib-env-var-tried-last configure switch, then this + hard-wired path will be tried before looking at the environment + variable :envvar:`PROJ_LIB`. + - The current directory When networking capabilities are enabled, either by API with the -- cgit v1.2.3