From: Sarah Hoffmann Date: Wed, 13 Jan 2021 16:00:38 +0000 (+0100) Subject: set CONST_LibDir directly from the source scripts X-Git-Tag: v3.7.0~57^2~15 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/e467b956ffbe32acbec2ae0bf7ef029a66f2ede0 set CONST_LibDir directly from the source scripts Now that the source scripts have been moved to \lib, they can determine the position of the PHP library relative to themselves. --- diff --git a/cmake/script.tmpl b/cmake/script.tmpl index 8e72cc08..b0e1f535 100755 --- a/cmake/script.tmpl +++ b/cmake/script.tmpl @@ -3,7 +3,6 @@ @define('CONST_Default_ModulePath', '@CMAKE_BINARY_DIR@/module'); @define('CONST_Default_Osm2pgsql', '@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql'); @define('CONST_BinDir', '@CMAKE_SOURCE_DIR@/utils'); -@define('CONST_LibDir', '@CMAKE_SOURCE_DIR@/lib'); @define('CONST_DataDir', '@CMAKE_SOURCE_DIR@'); -require_once(CONST_LibDir.'/admin/@script_source@'); +require_once('@CMAKE_SOURCE_DIR@/lib/admin/@script_source@'); diff --git a/lib/admin/check_import_finished.php b/lib/admin/check_import_finished.php index bd5d7a00..f189fc9a 100644 --- a/lib/admin/check_import_finished.php +++ b/lib/admin/check_import_finished.php @@ -1,4 +1,5 @@