forked from hans/Nominatim
cmake: only require php for import and api
This commit is contained in:
@@ -79,6 +79,7 @@ endif()
|
|||||||
|
|
||||||
# Setting PHP binary variable as to command line (prevailing) or auto detect
|
# Setting PHP binary variable as to command line (prevailing) or auto detect
|
||||||
|
|
||||||
|
if (BUILD_API OR BUILD_IMPORTER)
|
||||||
if (NOT PHP_BIN)
|
if (NOT PHP_BIN)
|
||||||
find_program (PHP_BIN php)
|
find_program (PHP_BIN php)
|
||||||
endif()
|
endif()
|
||||||
@@ -87,6 +88,7 @@ if (NOT EXISTS ${PHP_BIN})
|
|||||||
message(FATAL_ERROR "PHP binary not found. Install php or provide location with -DPHP_BIN=/path/php ")
|
message(FATAL_ERROR "PHP binary not found. Install php or provide location with -DPHP_BIN=/path/php ")
|
||||||
endif()
|
endif()
|
||||||
message (STATUS "Using PHP binary " ${PHP_BIN})
|
message (STATUS "Using PHP binary " ${PHP_BIN})
|
||||||
|
endif()
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# import scripts and utilities (importer only)
|
# import scripts and utilities (importer only)
|
||||||
|
|||||||
Reference in New Issue
Block a user