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:
124124 sudo systemctl restart snmpd
125125
126126 - 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.
5757
5858cmake_minimum_required (VERSION 3.25...3.31)
5959
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 )
6961 message (
7062 FATAL_ERROR
7163 "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)
7567 )
7668endif ()
7769
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+
7878# Configuration.
7979block(PROPAGATE phpUrl)
8080 set (
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ target_sources(
4747target_link_libraries (
4848 php_sapi_embed
4949 PRIVATE
50- PHP::sapi
50+ $<BUILD_INTERFACE: PHP::sapi>
5151)
5252
5353target_compile_definitions (php_sapi_embed PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE)
You can’t perform that action at this time.
0 commit comments