mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-15 02:47:59 +00:00
configure osm2pgsql and module location via cmake
The default location of osm2pgsql and the postgresql module is decided at compile/installation time and is not necessarily in the project directory. With this change it is now possible to have a project directory that is completely separate from the build directory.
This commit is contained in:
@@ -17,12 +17,7 @@ function checkInFile($sOSMFile)
|
||||
|
||||
function getOsm2pgsqlBinary()
|
||||
{
|
||||
$sBinary = getSetting('OSM2PGSQL_BINARY');
|
||||
if (!$sBinary) {
|
||||
$sBinary = CONST_InstallDir.'/osm2pgsql/osm2pgsql';
|
||||
}
|
||||
|
||||
return $sBinary;
|
||||
return getSetting('OSM2PGSQL_BINARY', CONST_Default_Osm2pgsql);
|
||||
}
|
||||
|
||||
function getImportStyle()
|
||||
|
||||
Reference in New Issue
Block a user