File tree Expand file tree Collapse file tree 1 file changed +9
-20
lines changed Expand file tree Collapse file tree 1 file changed +9
-20
lines changed Original file line number Diff line number Diff line change @@ -104,30 +104,19 @@ if(_HAVE_ELF)
104104 )
105105
106106 # Regenerate main/debug_gdb_scripts.c after PHP cli SAPI has been built.
107- file (
108- GENERATE
109- OUTPUT CMakeFiles/GenerateDebugGDBScripts.cmake
110- CONTENT [[
111- if(EXISTS ${PHP_EXECUTABLE})
112- execute_process(
113- COMMAND ${PHP_EXECUTABLE}
114- ${PHP_SOURCE_DIR}/scripts/gdb/debug_gdb_scripts_gen.php
115- )
116- endif()
117- ]]
118- )
119-
120- add_custom_command (
121- OUTPUT ${CMAKE_CURRENT_SOURCE_DIR} /debug_gdb_scripts.c
122- COMMAND ${CMAKE_COMMAND}
123- -D PHP_EXECUTABLE=${PHP_BINARY_DIR} /sapi/cli/php
124- -D PHP_SOURCE_DIR=${PHP_SOURCE_DIR}
125- -P CMakeFiles/GenerateDebugGDBScripts.cmake
107+ include (PHP/AddCustomCommand)
108+ php_add_custom_command(
109+ php_main_generate_debug_gdb_scripts
110+ OUTPUT
111+ ${CMAKE_CURRENT_SOURCE_DIR} /debug_gdb_scripts.c
126112 DEPENDS
127113 ${PHP_SOURCE_DIR} /scripts/gdb/debug_gdb_scripts_gen.php
128114 ${PHP_SOURCE_DIR} /scripts/gdb/php_gdb.py
129115 ${PHP_SOURCE_DIR} /.gdbinit
130- COMMENT "[main] Regenerating main/debug_gdb_scripts.c"
116+ PHP_COMMAND
117+ ${PHP_SOURCE_DIR} /scripts/gdb/debug_gdb_scripts_gen.php
118+ COMMENT
119+ "[main] Regenerating main/debug_gdb_scripts.c"
131120 VERBATIM
132121 )
133122endif ()
You can’t perform that action at this time.
0 commit comments