Skip to content

Commit 90813d2

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents bd85dcc + 68cbf71 commit 90813d2

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,7 @@ further information.
5757

5858
cmake_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
)
7668
endif()
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.
7979
block(PROPAGATE phpUrl)
8080
set(

cmake/sapi/embed/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ target_sources(
4747
target_link_libraries(
4848
php_sapi_embed
4949
PRIVATE
50-
PHP::sapi
50+
$<BUILD_INTERFACE:PHP::sapi>
5151
)
5252

5353
target_compile_definitions(php_sapi_embed PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE)

0 commit comments

Comments
 (0)