File tree Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1414 cmake -P bin/init.cmake
1515#]=============================================================================]
1616
17- cmake_minimum_required (VERSION 3.25)
17+ cmake_minimum_required (VERSION 3.25...3.31 )
1818
1919if (NOT CMAKE_SCRIPT_MODE_FILE )
2020 message (FATAL_ERROR "This is a command-line script." )
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Usage examples:
3333 ./bin/php.cmake
3434#]=============================================================================]
3535
36- cmake_minimum_required (VERSION 3.25)
36+ cmake_minimum_required (VERSION 3.25...3.31 )
3737
3838if (NOT CMAKE_SCRIPT_MODE_FILE )
3939 message (FATAL_ERROR "This is a command-line script." )
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ include(cmake/CMakeDefaults.cmake)
55
66message (STATUS "Initializing PHP build system" )
77message (STATUS "=============================" )
8-
98message (STATUS "CMake version: ${CMAKE_VERSION} " )
109message (STATUS "CMake generator: ${CMAKE_GENERATOR} " )
1110
Original file line number Diff line number Diff line change @@ -31,8 +31,10 @@ set(template [[
3131]])
3232
3333file (GLOB credits ${PHP_SOURCE_DIR} /*/*/CREDITS)
34+ # Case-sensitive filtering, GLOB on macOS/Windows is case-insensitive.
35+ list (FILTER credits INCLUDE REGEX ".*CREDITS$" )
3436
35- foreach (credit ${ credits} )
37+ foreach (credit IN LISTS credits)
3638 cmake_path(GET credit PARENT_PATH dir)
3739 cmake_path(GET dir PARENT_PATH dir)
3840 cmake_path(GET dir FILENAME dir)
@@ -46,7 +48,7 @@ endforeach()
4648
4749list (REMOVE_DUPLICATES dirs)
4850
49- foreach (dir ${ dirs} )
51+ foreach (dir IN LISTS dirs)
5052 list (SORT ${dir} _credits CASE INSENSITIVE)
5153 list (JOIN ${dir} _credits ";\n " content )
5254 set (content "${template}${content} ;\n " )
Original file line number Diff line number Diff line change @@ -493,6 +493,8 @@ check_symbol_exists(
493493
494494block()
495495 file (GLOB credits ${PHP_SOURCE_DIR} /*/*/CREDITS)
496+ # Case-sensitive filtering, GLOB on macOS/Windows is case-insensitive.
497+ list (FILTER credits INCLUDE REGEX ".*CREDITS$" )
496498
497499 # The CODEGEN keyword adds the custom command to a global 'codegen' target.
498500 set (codegen "" )
You can’t perform that action at this time.
0 commit comments