cmake: only require php for import and api

This commit is contained in:
Sarah Hoffmann
2020-06-11 22:44:00 +02:00
parent a0e7d80daf
commit 155d4c5591

View File

@@ -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)