Skip to content

Commit 89a8989

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 313a2c3 + 7adccd8 commit 89a8989

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

CMakeLists.txt

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,31 @@ project(
7272
VERSION 8.5
7373
DESCRIPTION "CMake-based PHP build system"
7474
HOMEPAGE_URL "https://github.com/petk/php-build-system"
75-
LANGUAGES NONE
75+
LANGUAGES C
7676
)
7777

78+
################################################################################
79+
# Configure languages.
80+
################################################################################
81+
82+
# Optionally enable C++ language for PHP extensions.
83+
include(CheckLanguage)
84+
check_language(CXX)
85+
if(CMAKE_CXX_COMPILER)
86+
enable_language(CXX)
87+
endif()
88+
89+
# Enable Assembly language dialect.
90+
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
91+
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^ARM")
92+
enable_language(ASM_MARMASM)
93+
else()
94+
enable_language(ASM_MASM)
95+
endif()
96+
else()
97+
enable_language(ASM)
98+
endif()
99+
78100
# Configuration.
79101
block(PROPAGATE phpUrl)
80102
set(

0 commit comments

Comments
 (0)