From: Sarah Hoffmann Date: Wed, 28 Jul 2021 14:12:57 +0000 (+0200) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~158 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/1e9f37ab82db1758235bedf83c659693f4ca6c3e?ds=inline;hp=-c Merge remote-tracking branch 'upstream/master' --- 1e9f37ab82db1758235bedf83c659693f4ca6c3e diff --combined CMakeLists.txt index 48d640bc,976f0698..e189e479 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@@ -62,7 -62,7 +62,7 @@@ endif( #----------------------------------------------------------------------------- if (BUILD_IMPORTER) - find_package(PythonInterp 3.5 REQUIRED) + find_package(PythonInterp 3.6 REQUIRED) endif() #----------------------------------------------------------------------------- @@@ -113,27 -113,6 +113,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 #-----------------------------------------------------------------------------