diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-07 21:58:16 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-07 22:05:37 +0100 |
commit | 822a94c18419a5b21ef4c9a531335732d9afc596 (patch) | |
tree | 14bff741e5df375d7018e94ac3430319d8765a4f /cmake | |
parent | e0f096abe6b1ca68161fc2390582da795dd9abc9 (diff) | |
download | weechat-822a94c18419a5b21ef4c9a531335732d9afc596.zip |
php: add proper detection of PHP 8.2 in all cases
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindPHP.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/FindPHP.cmake b/cmake/FindPHP.cmake index 2e5e1eed9..c5b628bf4 100644 --- a/cmake/FindPHP.cmake +++ b/cmake/FindPHP.cmake @@ -29,6 +29,7 @@ endif() if(NOT PHP_FOUND) find_program(PHP_CONFIG_EXECUTABLE NAMES + php-config8.2 php-config82 php-config8.1 php-config81 php-config8.0 php-config80 php-config8 @@ -47,7 +48,7 @@ if(NOT PHP_FOUND) execute_process(COMMAND ${PHP_CONFIG_EXECUTABLE} --version OUTPUT_VARIABLE PHP_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) if(${PHP_VERSION} MATCHES "^[78]") find_library(PHP_LIB - NAMES php8.1 php8.0 php8 php7.4 php7.3 php7.2 php7.1 php7.0 php7 php + NAMES php8.2 php8.1 php8.0 php8 php7.4 php7.3 php7.2 php7.1 php7.0 php7 php HINTS ${PHP_LIB_PREFIX} ${PHP_LIB_PREFIX}/lib ${PHP_LIB_PREFIX}/lib64 ) if(PHP_LIB) |