File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -124,5 +124,7 @@ jobs:
124
124
sudo systemctl restart snmpd
125
125
126
126
- name : Run tests
127
- run : |
128
- ctest --preset all-enabled
127
+ run : ctest --preset all-enabled
128
+
129
+ - name : Install PHP
130
+ run : cmake --install php-build/all-enabled
Original file line number Diff line number Diff line change @@ -57,15 +57,7 @@ further information.
57
57
58
58
cmake_minimum_required (VERSION 3.25...3.31 )
59
59
60
- project (
61
- PhpBuildSystem
62
- VERSION 8.4
63
- DESCRIPTION "CMake-based PHP build system"
64
- HOMEPAGE_URL "https://github.com/petk/php-build-system"
65
- LANGUAGES NONE
66
- )
67
-
68
- if (PROJECT_IS_TOP_LEVEL AND CMAKE_SOURCE_DIR PATH_EQUAL CMAKE_BINARY_DIR )
60
+ if (CMAKE_BINARY_DIR PATH_EQUAL CMAKE_CURRENT_LIST_DIR )
69
61
message (
70
62
FATAL_ERROR
71
63
"In-source builds are disabled. Please, set the build directory.\n "
@@ -75,6 +67,14 @@ if(PROJECT_IS_TOP_LEVEL AND CMAKE_SOURCE_DIR PATH_EQUAL CMAKE_BINARY_DIR)
75
67
)
76
68
endif ()
77
69
70
+ project (
71
+ PhpBuildSystem
72
+ VERSION 8.4
73
+ DESCRIPTION "CMake-based PHP build system"
74
+ HOMEPAGE_URL "https://github.com/petk/php-build-system"
75
+ LANGUAGES NONE
76
+ )
77
+
78
78
# Configuration.
79
79
block (PROPAGATE phpUrl )
80
80
set (
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ target_sources(
47
47
target_link_libraries (
48
48
php_sapi_embed
49
49
PRIVATE
50
- PHP::sapi
50
+ $< BUILD_INTERFACE: PHP::sapi>
51
51
)
52
52
53
53
target_compile_definitions (php_sapi_embed PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE )
You can’t perform that action at this time.
0 commit comments