@@ -198,9 +198,9 @@ function(_php_extensions_parse_dependencies extension result)
198198 # Command invocation:
199199 "add_dependencies[ \t ]*\\ ("
200200 # Target name:
201- "[ \t\r\ n ]*php_ext_${extension} [ \t\r \n ]+"
201+ "[ \t\n ]*php_ext_${extension} [ \t\n ]+"
202202 # Dependencies:
203- "[\" ]?(php_ext_[a-zA-Z0-9_; \t\r\ n ]+)"
203+ "[\" ]?(php_ext_[a-zA-Z0-9_; \t\n ]+)"
204204 )
205205
206206 string (REGEX MATCHALL "${regex} " matches "${content} " )
@@ -247,22 +247,22 @@ endfunction()
247247function (_php_extensions_option_regex option result)
248248 string (CONCAT _
249249 # Start of the option command invocation:
250- "[ \t\r\ n ]?option[ \t ]*\\ ([ \t\r \n ]*"
250+ "[ \t\n ]?option[ \t ]*\\ ([ \t\n ]*"
251251 # Variable name:
252- "[ \t\r\ n ]*${option} [ \t\r \n ]+"
252+ "[ \t\n ]*${option} [ \t\n ]+"
253253 # Documentation string without escaped double quotes (\"):
254254 # TODO: should escaped quotes be also matched?
255- #"[ \t\r\ n]*\"([^\"]|\\\")*\"[ \t\r \n]*"
256- "[ \t\r\ n ]*\" [^\" ]*\" [ \t\r \n ]*"
255+ #"[ \t\n]*\"([^\"]|\\\")*\"[ \t\n]*"
256+ "[ \t\n ]*\" [^\" ]*\" [ \t\n ]*"
257257 # Optional boolean or variable value:
258- "([ \t\r\ n ]+("
258+ "([ \t\n ]+("
259259 "ON|on|TRUE|true|YES|yes|Y|y|"
260260 "OFF|off|FALSE|false|NO|no|N|n|"
261261 "[0-9.]+|"
262262 "\\\$\\ {[^\\ }]+\\ }"
263263 "))?"
264264 # End of option invocation:
265- "[ \t\r\ n ]*\\ )"
265+ "[ \t\n ]*\\ )"
266266 )
267267
268268 set (${result} "${_} " PARENT_SCOPE)
@@ -272,31 +272,31 @@ endfunction()
272272function (_php_extensions_cmake_dependent_option_regex option result)
273273 string (CONCAT _
274274 # Start of the option command invocation:
275- "[ \t\r\ n ]?cmake_dependent_option[ \t ]*\\ ([ \t\r \n ]*"
275+ "[ \t\n ]?cmake_dependent_option[ \t ]*\\ ([ \t\n ]*"
276276 # Variable name:
277- "[ \t\r\ n ]*${option} [ \t\r \n ]+"
277+ "[ \t\n ]*${option} [ \t\n ]+"
278278 # Documentation string without escaped double quotes (\"):
279279 # TODO: should escaped quotes be also matched?
280- #"[ \t\r\ n]*\"([^\"]|\\\")*\"[ \t\r \n]*"
281- "[ \t\r\ n ]*\" [^\" ]*\" [ \t\r \n ]*"
280+ #"[ \t\n]*\"([^\"]|\\\")*\"[ \t\n]*"
281+ "[ \t\n ]*\" [^\" ]*\" [ \t\n ]*"
282282 # Boolean or variable value:
283- "[ \t\r\ n ]+("
283+ "[ \t\n ]+("
284284 "ON|on|TRUE|true|YES|yes|Y|y|"
285285 "OFF|off|FALSE|false|NO|no|N|n|"
286286 "[0-9.]+|"
287287 "\\\$\\ {[^\\ }]+\\ }"
288288 ")"
289289 # Semicolon separated list of conditions:
290- "[ \t\r\ n ]*\" [^\" ]*\" [ \t\r \n ]*"
290+ "[ \t\n ]*\" [^\" ]*\" [ \t\n ]*"
291291 # Boolean or variable force value:
292- "[ \t\r\ n ]+("
292+ "[ \t\n ]+("
293293 "ON|on|TRUE|true|YES|yes|Y|y|"
294294 "OFF|off|FALSE|false|NO|no|N|n|"
295295 "[0-9.]+|"
296296 "\\\$\\ {[^\\ }]+\\ }"
297297 ")"
298298 # End of option invocation:
299- "[ \t\r\ n ]*\\ )"
299+ "[ \t\n ]*\\ )"
300300 )
301301
302302 set (${result} "${_} " PARENT_SCOPE)
@@ -361,7 +361,7 @@ endfunction()
361361
362362# Remove line comments from CMake code content.
363363function (_php_extensions_remove_comments)
364- string (REGEX REPLACE "[ \t ]*#[^\r\ n ]*" "" ${ARGV0} "${${ARGV0} }" )
364+ string (REGEX REPLACE "[ \t ]*#[^\n ]*" "" ${ARGV0} "${${ARGV0} }" )
365365 set (${ARGV0} "${${ARGV0} }" PARENT_SCOPE)
366366endfunction ()
367367
0 commit comments