File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ if test -z "$branch"; then
143
143
branch=master
144
144
;;
145
145
* )
146
- echo " Unknown branch. Please, add the '--branch' option" >&2
146
+ echo " Unknown php-src branch $branch . Branch can be adjusted with:" >&2
147
+ echo " '--branch PHP-X.Y' option" >&2
147
148
exit 1
148
149
;;
149
150
esac
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ php_add_custom_command(
31
31
```
32
32
33
33
It acts similar to `add_custom_command()` and `add_custom_target()`, except that
34
- the DEPENDS argument doesn't add dependencies among targets but instead checks
35
- their timestamps manually and executes the PHP_COMMAND only when needed.
34
+ when PHP is not found on the system, the DEPENDS argument doesn't add
35
+ dependencies among targets but instead checks their timestamps manually and
36
+ executes the PHP_COMMAND only when needed.
36
37
37
38
```cmake
38
39
php_add_custom_command(
@@ -69,8 +70,6 @@ function(php_add_custom_command)
69
70
message (FATAL_ERROR "1st argument (target name) is missing." )
70
71
endif ()
71
72
72
- set (targetName ${ARGV0} )
73
-
74
73
if (parsed_VERBATIM )
75
74
set (verbatim VERBATIM )
76
75
else ()
@@ -97,6 +96,8 @@ function(php_add_custom_command)
97
96
return ()
98
97
endif ()
99
98
99
+ set (targetName ${ARGV0} )
100
+
100
101
add_custom_target (
101
102
${targetName} ALL
102
103
COMMAND ${CMAKE_COMMAND}
You can’t perform that action at this time.
0 commit comments