From e0f27dd9c06e967fd38b934d10edc4ca91a27fff Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 29 Feb 2020 16:15:52 +0300 Subject: [PATCH] Do not try to use PHP on HardenedBSD. GitOrigin-RevId: 9418dd2c90cc35a930342376bd65711428c29333 --- example/java/CMakeLists.txt | 3 +++ td/generate/CMakeLists.txt | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/example/java/CMakeLists.txt b/example/java/CMakeLists.txt index 79b1139a..edc8246a 100644 --- a/example/java/CMakeLists.txt +++ b/example/java/CMakeLists.txt @@ -21,6 +21,9 @@ message(STATUS "Found Java: ${Java_JAVAC_EXECUTABLE} ${Java_JAVADOC_EXECUTABLE}" # Generating TdApi.java find_program(PHP_EXECUTABLE php) +if ((CMAKE_SYSTEM_NAME MATCHES "FreeBSD") AND (CMAKE_SYSTEM_VERSION MATCHES "HBSD")) + set(PHP_EXECUTABLE "PHP_EXECUTABLE-NOTFOUND") +endif() set(TD_API_JAVA_PACKAGE "org/drinkless/tdlib") set(TD_API_JAVA_PATH ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/td/generate/CMakeLists.txt b/td/generate/CMakeLists.txt index 62d7a665..adbaa266 100644 --- a/td/generate/CMakeLists.txt +++ b/td/generate/CMakeLists.txt @@ -96,6 +96,10 @@ set(TL_GENERATE_JSON_SOURCE if (NOT CMAKE_CROSSCOMPILING) find_program(PHP_EXECUTABLE php) + if ((CMAKE_SYSTEM_NAME MATCHES "FreeBSD") AND (CMAKE_SYSTEM_VERSION MATCHES "HBSD")) + set(PHP_EXECUTABLE "PHP_EXECUTABLE-NOTFOUND") + endif() + if (PHP_EXECUTABLE AND NOT TD_ENABLE_DOTNET) set(GENERATE_COMMON_CMD generate_common && ${PHP_EXECUTABLE} DoxygenTlDocumentationGenerator.php scheme/td_api.tl auto/td/telegram/td_api.h) else()