Skip to content

Commit d45d918

Browse files
committed
Fix build
1 parent a6aca68 commit d45d918

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
@@ -515,6 +515,7 @@ set_target_properties(
515515
INCLUDE_DIRECTORIES $<TARGET_PROPERTY:php_ext_standard,INCLUDE_DIRECTORIES>
516516
COMPILE_DEFINITIONS $<TARGET_PROPERTY:php_ext_standard,COMPILE_DEFINITIONS>
517517
LINK_LIBRARIES $<TARGET_PROPERTY:php_ext_standard,LINK_LIBRARIES>
518+
PHP_CORE TRUE
518519
)
519520

520521
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)