From: Sarah Hoffmann Date: Mon, 8 Aug 2022 07:21:08 +0000 (+0200) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~97 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/fa44f7bcb308bfe51cc68ad15c2e4574f2182a09?hp=-c Merge remote-tracking branch 'upstream/master' --- fa44f7bcb308bfe51cc68ad15c2e4574f2182a09 diff --combined CMakeLists.txt index 67746f78,036dda31..e9731ba8 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@@ -19,7 -19,7 +19,7 @@@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_ project(nominatim) set(NOMINATIM_VERSION_MAJOR 4) - set(NOMINATIM_VERSION_MINOR 0) + set(NOMINATIM_VERSION_MINOR 1) set(NOMINATIM_VERSION_PATCH 0) set(NOMINATIM_VERSION "${NOMINATIM_VERSION_MAJOR}.${NOMINATIM_VERSION_MINOR}.${NOMINATIM_VERSION_PATCH}") @@@ -125,27 -125,6 +125,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 #-----------------------------------------------------------------------------