]> git.openstreetmap.org Git - nominatim.git/blobdiff - cmake/script.tmpl
set CONST_LibDir directly from the source scripts
[nominatim.git] / cmake / script.tmpl
index 4d9224b03d2b8b92fdaf349940abfe1ba06e6045..b0e1f535bfa53f7aa4c5065c50cb4ddf6ca85d54 100755 (executable)
@@ -1,7 +1,8 @@
 #!@PHP_BIN@ -Cq
 <?php
+@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_BinDir.'/@script_source@');
+require_once('@CMAKE_SOURCE_DIR@/lib/admin/@script_source@');