Skip to content

Commit 1552784

Browse files
committed
Remove redundant block in ext/pcre
1 parent ccf8d8b commit 1552784

File tree

1 file changed

+46
-48
lines changed

1 file changed

+46
-48
lines changed

cmake/ext/pcre/CMakeLists.txt

Lines changed: 46 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -141,54 +141,52 @@ if(PHP_EXT_PCRE_EXTERNAL)
141141
else()
142142
message(STATUS "Using bundled PCRE library")
143143

144-
block()
145-
target_sources(
146-
php_ext_pcre
147-
PRIVATE
148-
pcre2lib/pcre2_auto_possess.c
149-
pcre2lib/pcre2_chartables.c
150-
pcre2lib/pcre2_compile.c
151-
pcre2lib/pcre2_config.c
152-
pcre2lib/pcre2_context.c
153-
pcre2lib/pcre2_convert.c
154-
pcre2lib/pcre2_dfa_match.c
155-
pcre2lib/pcre2_error.c
156-
pcre2lib/pcre2_extuni.c
157-
pcre2lib/pcre2_find_bracket.c
158-
pcre2lib/pcre2_jit_compile.c
159-
pcre2lib/pcre2_maketables.c
160-
pcre2lib/pcre2_match_data.c
161-
pcre2lib/pcre2_match.c
162-
pcre2lib/pcre2_newline.c
163-
pcre2lib/pcre2_ord2utf.c
164-
pcre2lib/pcre2_pattern_info.c
165-
pcre2lib/pcre2_script_run.c
166-
pcre2lib/pcre2_serialize.c
167-
pcre2lib/pcre2_string_utils.c
168-
pcre2lib/pcre2_study.c
169-
pcre2lib/pcre2_substitute.c
170-
pcre2lib/pcre2_substring.c
171-
pcre2lib/pcre2_tables.c
172-
pcre2lib/pcre2_ucd.c
173-
pcre2lib/pcre2_valid_utf.c
174-
pcre2lib/pcre2_xclass.c
175-
PUBLIC
176-
FILE_SET HEADERS
177-
FILES
178-
# Exclude PCRE2 library config.h header as it uses the
179-
# HAVE_PCRE_VALGRIND_SUPPORT provided via compile definition by
180-
# generator expressions (not available in the PHP configuration
181-
# headers). It isn't required to use public headers. Perhaps more
182-
# could be filtered and synced with upstream PCRE installed headers.
183-
#pcre2lib/config.h
184-
pcre2lib/pcre2_internal.h
185-
pcre2lib/pcre2_intmodedep.h
186-
pcre2lib/pcre2_jit_neon_inc.h
187-
pcre2lib/pcre2_jit_simd_inc.h
188-
pcre2lib/pcre2_ucp.h
189-
pcre2lib/pcre2.h
190-
)
191-
endblock()
144+
target_sources(
145+
php_ext_pcre
146+
PRIVATE
147+
pcre2lib/pcre2_auto_possess.c
148+
pcre2lib/pcre2_chartables.c
149+
pcre2lib/pcre2_compile.c
150+
pcre2lib/pcre2_config.c
151+
pcre2lib/pcre2_context.c
152+
pcre2lib/pcre2_convert.c
153+
pcre2lib/pcre2_dfa_match.c
154+
pcre2lib/pcre2_error.c
155+
pcre2lib/pcre2_extuni.c
156+
pcre2lib/pcre2_find_bracket.c
157+
pcre2lib/pcre2_jit_compile.c
158+
pcre2lib/pcre2_maketables.c
159+
pcre2lib/pcre2_match_data.c
160+
pcre2lib/pcre2_match.c
161+
pcre2lib/pcre2_newline.c
162+
pcre2lib/pcre2_ord2utf.c
163+
pcre2lib/pcre2_pattern_info.c
164+
pcre2lib/pcre2_script_run.c
165+
pcre2lib/pcre2_serialize.c
166+
pcre2lib/pcre2_string_utils.c
167+
pcre2lib/pcre2_study.c
168+
pcre2lib/pcre2_substitute.c
169+
pcre2lib/pcre2_substring.c
170+
pcre2lib/pcre2_tables.c
171+
pcre2lib/pcre2_ucd.c
172+
pcre2lib/pcre2_valid_utf.c
173+
pcre2lib/pcre2_xclass.c
174+
PUBLIC
175+
FILE_SET HEADERS
176+
FILES
177+
# Exclude PCRE2 library config.h header as it uses the
178+
# HAVE_PCRE_VALGRIND_SUPPORT provided via compile definition by
179+
# generator expressions (not available in the PHP configuration
180+
# headers). It isn't required to use public headers. Perhaps more
181+
# could be filtered and synced with upstream PCRE installed headers.
182+
#pcre2lib/config.h
183+
pcre2lib/pcre2_internal.h
184+
pcre2lib/pcre2_intmodedep.h
185+
pcre2lib/pcre2_jit_neon_inc.h
186+
pcre2lib/pcre2_jit_simd_inc.h
187+
pcre2lib/pcre2_ucp.h
188+
pcre2lib/pcre2.h
189+
)
192190

193191
# For pcre2lib/sljit/sljitNativeARM_64.c on ARM 64 processors build.
194192
php_check_compiler_flag(

0 commit comments

Comments
 (0)