File tree Expand file tree Collapse file tree 4 files changed +12
-28
lines changed Expand file tree Collapse file tree 4 files changed +12
-28
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,9 @@ if(PKG_CONFIG_FOUND)
37
37
endif ()
38
38
endif ()
39
39
40
- # Find package with upstream CMake module; override CMAKE_MODULE_PATH to prevent
41
- # the maximum nesting/recursion depth error on some systems, like macOS.
42
- set (_php_cmake_module_path ${CMAKE_MODULE_PATH} )
43
- unset (CMAKE_MODULE_PATH )
44
- include (FindICU )
45
- set (CMAKE_MODULE_PATH ${_php_cmake_module_path} )
46
- unset (_php_cmake_module_path )
40
+ # Find package with upstream CMake find module. Absolute path prevents the
41
+ # maximum nesting/recursion depth error on some systems, like macOS.
42
+ include (${CMAKE_ROOT} /Modules/FindICU.cmake )
47
43
48
44
# Upstream CMake module doesn't mark these as advanced variables.
49
45
# https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9199
Original file line number Diff line number Diff line change @@ -49,10 +49,6 @@ if(CMAKE_PREFIX_PATH OR Iconv_ROOT OR ICONV_ROOT)
49
49
endif ()
50
50
endif ()
51
51
52
- # Find package with upstream CMake module; override CMAKE_MODULE_PATH to prevent
53
- # the maximum nesting/recursion depth error on some systems, like macOS.
54
- set (_php_cmake_module_path ${CMAKE_MODULE_PATH} )
55
- unset (CMAKE_MODULE_PATH )
56
- include (FindIconv )
57
- set (CMAKE_MODULE_PATH ${_php_cmake_module_path} )
58
- unset (_php_cmake_module_path )
52
+ # Find package with upstream CMake find module. Absolute path prevents the
53
+ # maximum nesting/recursion depth error on some systems, like macOS.
54
+ include (${CMAKE_ROOT} /Modules/FindIconv.cmake )
Original file line number Diff line number Diff line change @@ -38,10 +38,6 @@ if(CMAKE_PREFIX_PATH OR Intl_ROOT OR INTL_ROOT)
38
38
endif ()
39
39
endif ()
40
40
41
- # Find package with upstream CMake module; override CMAKE_MODULE_PATH to prevent
42
- # the maximum nesting/recursion depth error on some systems, like macOS.
43
- set (_php_cmake_module_path ${CMAKE_MODULE_PATH} )
44
- unset (CMAKE_MODULE_PATH )
45
- include (FindIntl )
46
- set (CMAKE_MODULE_PATH ${_php_cmake_module_path} )
47
- unset (_php_cmake_module_path )
41
+ # Find package with upstream CMake find module. Absolute path prevents the
42
+ # maximum nesting/recursion depth error on some systems, like macOS.
43
+ include (${CMAKE_ROOT} /Modules/FindIntl.cmake )
Original file line number Diff line number Diff line change @@ -21,13 +21,9 @@ set_package_properties(
21
21
DESCRIPTION "XSLT processor library"
22
22
)
23
23
24
- # Find package with upstream CMake module; override CMAKE_MODULE_PATH to prevent
25
- # the maximum nesting/recursion depth error on some systems, like macOS.
26
- set (_php_cmake_module_path ${CMAKE_MODULE_PATH} )
27
- unset (CMAKE_MODULE_PATH )
28
- include (FindLibXslt )
29
- set (CMAKE_MODULE_PATH ${_php_cmake_module_path} )
30
- unset (_php_cmake_module_path )
24
+ # Find package with upstream CMake find module. Absolute path prevents the
25
+ # maximum nesting/recursion depth error on some systems, like macOS.
26
+ include (${CMAKE_ROOT} /Modules/FindLibXslt.cmake )
31
27
32
28
# Upstream CMake module doesn't mark these as advanced variables.
33
29
# https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8807
You can’t perform that action at this time.
0 commit comments