Skip to content

Commit 103dace

Browse files
committed
Fix build
1 parent c8c4773 commit 103dace

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cmake/ext/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ foreach(extension IN LISTS extensions)
8181
PRIVATE $<$<PLATFORM_ID:Windows>:$<TARGET_NAME_IF_EXISTS:PHP::core>>
8282
)
8383
else()
84-
set_target_properties(php_ext_${extension} PROPERTIES PHP_CORE)
84+
set_target_properties(php_ext_${extension} PROPERTIES PHP_CORE TRUE)
8585

8686
target_compile_definitions(
8787
php_config

cmake/ext/standard/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ set_target_properties(
516516
INCLUDE_DIRECTORIES $<TARGET_PROPERTY:php_ext_standard,INCLUDE_DIRECTORIES>
517517
COMPILE_DEFINITIONS $<TARGET_PROPERTY:php_ext_standard,COMPILE_DEFINITIONS>
518518
LINK_LIBRARIES $<TARGET_PROPERTY:php_ext_standard,LINK_LIBRARIES>
519+
PHP_CORE TRUE
519520
)
520521

521522
target_compile_definitions(

cmake/win32/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ target_link_libraries(
7777
PHP::core::objects
7878
)
7979

80-
set_target_properties(php_windows PROPERTIES OUTPUT_NAME php)
80+
set_target_properties(php_windows PROPERTIES OUTPUT_NAME php PHP_CORE TRUE)
8181

82-
target_compile_options(
82+
target_link_options(
8383
php_windows
8484
PRIVATE
8585
/nodefaultlib:libcmt

0 commit comments

Comments
 (0)