From: Sarah Hoffmann Date: Tue, 15 Nov 2022 08:40:12 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~91 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/4160c0a1942657f58f44d73e7637b0aaced93e9f?hp=-c Merge remote-tracking branch 'upstream/master' --- 4160c0a1942657f58f44d73e7637b0aaced93e9f diff --combined CMakeLists.txt index e9731ba8,f5f776a1..bdc5cfdc --- a/CMakeLists.txt +++ b/CMakeLists.txt @@@ -63,7 -63,6 +63,6 @@@ if (BUILD_IMPORTER AND BUILD_OSM2PGSQL endif() set(BUILD_TESTS_SAVED "${BUILD_TESTS}") set(BUILD_TESTS off) - set(WITH_LUA off CACHE BOOL "") add_subdirectory(osm2pgsql) set(BUILD_TESTS ${BUILD_TESTS_SAVED}) endif() @@@ -125,27 -124,6 +124,27 @@@ if (BUILD_IMPORTER ${PROJECT_BINARY_DIR}/nominatim) endif() +#----------------------------------------------------------------------------- +# Targets for running a development webserver from the build directory. +#----------------------------------------------------------------------------- + +if (BUILD_API) + set(WEBSITEFILES + 403.html + 509.html + crossdomain.xml + favicon.ico + nominatim.xml + robots.txt + taginfo.json + ) + + foreach (webfile ${WEBSITEFILES}) + configure_file(${PROJECT_SOURCE_DIR}/website/${webfile} + ${PROJECT_BINARY_DIR}/website/${webfile}) + endforeach() +endif() + #----------------------------------------------------------------------------- # Tests #-----------------------------------------------------------------------------