File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,31 @@ project(
72
72
VERSION 8.5
73
73
DESCRIPTION "CMake-based PHP build system"
74
74
HOMEPAGE_URL "https://github.com/petk/php-build-system"
75
- LANGUAGES NONE
75
+ LANGUAGES C
76
76
)
77
77
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
+
78
100
# Configuration.
79
101
block(PROPAGATE phpUrl)
80
102
set (
You can’t perform that action at this time.
0 commit comments