Skip to content

Commit f4f2ff4

Browse files
committed
Use CMake 3.27-style uppercase *_ROOT variables for simplicity
1 parent 9d92580 commit f4f2ff4

File tree

8 files changed

+14
-11
lines changed

8 files changed

+14
-11
lines changed

cmake/cmake/modules/FindCrypt.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ set_package_properties(
4141
################################################################################
4242
# Disable built-in Crypt when overriding search paths in FindCrypt.
4343
################################################################################
44-
if(CMAKE_PREFIX_PATH OR Crypt_ROOT)
44+
if(CMAKE_PREFIX_PATH OR Crypt_ROOT OR CRYPT_ROOT)
4545
find_path(
4646
_Crypt_INCLUDE_DIR
4747
NAMES
4848
crypt.h unistd.h
4949
PATHS
5050
${CMAKE_PREFIX_PATH}
5151
${Crypt_ROOT}
52+
${CRYPT_ROOT}
5253
PATH_SUFFIXES
5354
include
5455
NO_DEFAULT_PATH

cmake/cmake/modules/FindIconv.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set_package_properties(
2222

2323
# Adjustment when overriding the iconv library path, otherwise Iconv is first
2424
# searched in C library.
25-
if(CMAKE_PREFIX_PATH OR Iconv_ROOT)
25+
if(CMAKE_PREFIX_PATH OR Iconv_ROOT OR ICONV_ROOT)
2626
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.31)
2727
set(Iconv_IS_BUILT_IN FALSE)
2828
else()
@@ -32,6 +32,7 @@ if(CMAKE_PREFIX_PATH OR Iconv_ROOT)
3232
PATHS
3333
${CMAKE_PREFIX_PATH}
3434
${Iconv_ROOT}
35+
${ICONV_ROOT}
3536
PATH_SUFFIXES
3637
# GNU libiconv on Alpine Linux has header located on a special location:
3738
include/gnu-libiconv

cmake/cmake/modules/FindIntl.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Find the Intl library.
55
66
Module overrides the upstream CMake `FindIntl` module with few customizations.
77
8-
Enables finding Intl library with `Intl_ROOT` hint variable.
8+
Enables finding Intl library with `INTL_ROOT` hint variable.
99
1010
See: https://cmake.org/cmake/help/latest/module/FindIntl.html
1111
#]=============================================================================]
@@ -19,13 +19,14 @@ set_package_properties(
1919
)
2020

2121
# Disable built-in intl when overriding search paths in CMake's FindIntl.
22-
if(CMAKE_PREFIX_PATH OR Intl_ROOT)
22+
if(CMAKE_PREFIX_PATH OR Intl_ROOT OR INTL_ROOT)
2323
find_path(
2424
php_intl_INCLUDE_DIR
2525
NAMES libintl.h
2626
PATHS
2727
${CMAKE_PREFIX_PATH}
2828
${Intl_ROOT}
29+
${INTL_ROOT}
2930
PATH_SUFFIXES
3031
include
3132
NO_DEFAULT_PATH

cmake/ext/openssl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Use system default cipher list instead of the hardcoded value for OpenSSL.
4040
Include Kerberos support for OpenSSL.
4141
4242
Where to find Kerberos installation on the system, can be customized with the
43-
`Kerberos_ROOT` variable.
43+
`KERBEROS_ROOT` variable.
4444
4545
Note, that Kerberos support has been removed as of OpenSSL 1.1.0, which makes
4646
this option deprecated.

cmake/ext/pdo_mysql/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Build extension as shared library.
2727
Select the MySQL driver for the `pdo_mysql` extension.
2828
2929
The `mysql` driver uses system MySQL library. Where to find the MySQL library
30-
installation on the system, can be customized with the `MySQL_ROOT` and
30+
installation on the system, can be customized with the `MYSQL_ROOT` and
3131
`MySQL_CONFIG_EXECUTABLE` variables.
3232
#]=============================================================================]
3333

cmake/sapi/apache2handler/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ be set automatically during the configuration step, if threaded Apache can be
1717
discovered on the system.
1818
1919
Path where to look for the Apache installation on the system can be customized
20-
with the `Apache_ROOT` and `Apache_APXS_EXECUTABLE` variables.
20+
with the `APACHE_ROOT` and `Apache_APXS_EXECUTABLE` variables.
2121
2222
For example:
2323

cmake/sapi/fpm/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Where to find ACL installation on the system, can be customized with the
4848
Enable the AppArmor confinement through libapparmor.
4949
5050
Where to find AppArmor installation on the system, can be customized with the
51-
`AppArmor_ROOT` variable.
51+
`APPARMOR_ROOT` variable.
5252
5353
> [!NOTE]
5454
> This option is not available when the target system is Darwin (macOS) as this
@@ -62,7 +62,7 @@ Where to find AppArmor installation on the system, can be customized with the
6262
Enable the SELinux policy library support.
6363
6464
Where to find SELinux installation on the system, can be customized with the
65-
`SELinux_ROOT` variable.
65+
`SELINUX_ROOT` variable.
6666
6767
> [!NOTE]
6868
> This option is not available when the target system is Darwin (macOS) as this
@@ -76,7 +76,7 @@ Where to find SELinux installation on the system, can be customized with the
7676
Enable the systemd integration.
7777
7878
Where to find systemd installation on the system, can be customized with the
79-
`Systemd_ROOT` variable.
79+
`SYSTEMD_ROOT` variable.
8080
8181
> [!NOTE]
8282
> This option is not available when the target system is Darwin (macOS) as this

cmake/sapi/phpdbg/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ through arrow keys. Requires the Editline library. If the PHP extension
3636
automatically enabled regardless of this option.
3737
3838
Where to find the Editline installation on the system, can be customized with
39-
the `Editline_ROOT` variable.
39+
the `EDITLINE_ROOT` variable.
4040
#]=============================================================================]
4141

4242
include(CheckSymbolExists)

0 commit comments

Comments
 (0)