X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/3475e1dfd6c1ef44b7e2cc046d62a6f50108b6a0..5d95a72758f685ca6e08e5f5d82dccbe895aaa04:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a9ceed9..c6f63a8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,8 +86,19 @@ if (BUILD_API OR BUILD_IMPORTER) # sanity check if PHP binary exists if (NOT EXISTS ${PHP_BIN}) message(FATAL_ERROR "PHP binary not found. Install php or provide location with -DPHP_BIN=/path/php ") + 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() - message (STATUS "Using PHP binary " ${PHP_BIN}) endif() #-----------------------------------------------------------------------------