File tree Expand file tree Collapse file tree 3 files changed +4
-28
lines changed Expand file tree Collapse file tree 3 files changed +4
-28
lines changed Original file line number Diff line number Diff line change @@ -72,31 +72,9 @@ project(
72
72
VERSION 8.4
73
73
DESCRIPTION "CMake-based PHP build system"
74
74
HOMEPAGE_URL "https://github.com/petk/php-build-system"
75
- LANGUAGES C
75
+ LANGUAGES NONE
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
-
100
78
# Configuration.
101
79
block (PROPAGATE phpUrl )
102
80
set (
Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ define_property(
80
80
# Check whether IPO/LTO can be enabled.
81
81
include (PHP/Optimization )
82
82
83
+ # Enable position-independent code (PIC) for all targets and
84
+ # position-independent executables (PIE) for executable targets.
85
+ set (CMAKE_POSITION_INDEPENDENT_CODE TRUE )
83
86
include (CheckPIESupported )
84
87
check_pie_supported ()
85
88
Original file line number Diff line number Diff line change @@ -47,8 +47,3 @@ mark_as_advanced(CMAKE_COMPILE_WARNING_AS_ERROR)
47
47
# Set default visibility of all symbols to hidden if the compiler (for example,
48
48
# GCC >= 4) supports it. This can help reduce the binary size and startup time.
49
49
set (CMAKE_C_VISIBILITY_PRESET "hidden" )
50
-
51
- # Enable position-independent code (PIC) for all targets.
52
- if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE )
53
- set (CMAKE_POSITION_INDEPENDENT_CODE ON )
54
- endif ()
You can’t perform that action at this time.
0 commit comments