Skip to content

Commit 57677ab

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents 2de12f5 + 0f12129 commit 57677ab

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cmake/ext/date/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,23 @@ add_feature_info(
2323

2424
add_library(php_date OBJECT)
2525

26+
set(phpDateSources php_date.c)
27+
2628
target_sources(
2729
php_date
2830
PRIVATE
29-
php_date.c
31+
${phpDateSources}
3032
php_date.stub.php
3133
PUBLIC
3234
FILE_SET HEADERS
3335
FILES
3436
php_date.h
3537
)
3638

37-
target_compile_definitions(php_date PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE)
39+
set_source_files_properties(
40+
${phpDateSources}
41+
PROPERTIES COMPILE_DEFINITIONS ZEND_ENABLE_STATIC_TSRMLS_CACHE
42+
)
3843

3944
target_compile_options(
4045
php_date

0 commit comments

Comments
 (0)