From: Sarah Hoffmann Date: Sun, 30 Jul 2023 09:00:12 +0000 (+0200) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~68 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/5972eb8ee06d9fdbef948b2d260a6aeb50541e57?hp=-c Merge remote-tracking branch 'upstream/master' --- 5972eb8ee06d9fdbef948b2d260a6aeb50541e57 diff --combined CMakeLists.txt index 3f68012f,8868ea32..cf76f00c --- a/CMakeLists.txt +++ b/CMakeLists.txt @@@ -92,16 -92,6 +92,6 @@@ if (BUILD_API OR BUILD_IMPORTER else() message (STATUS "Using PHP binary " ${PHP_BIN}) endif() - if (NOT PHPCGI_BIN) - find_program (PHPCGI_BIN php-cgi) - endif() - # sanity check if PHP binary exists - if (NOT EXISTS ${PHPCGI_BIN}) - message(WARNING "php-cgi binary not found. nominatim tool will not provide query functions.") - set (PHPCGI_BIN "") - else() - message (STATUS "Using php-cgi binary " ${PHPCGI_BIN}) - endif() endif() #----------------------------------------------------------------------------- @@@ -124,27 -114,6 +114,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 #-----------------------------------------------------------------------------