Skip to content

Commit 465263d

Browse files
committed
Fix typos
1 parent a0d8ad6 commit 465263d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmake/cmake/modules/PHP/PositionIndependentCode.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ Check whether to enable the POSITION_INDEPENDENT_CODE or not.
44
https://cmake.org/cmake/help/latest/variable/CMAKE_POSITION_INDEPENDENT_CODE.html
55
]=============================================================================]#
66

7-
if(CMAKE_COMPILER_ID STREQUAL "Clang" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
7+
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
88
# On 32-bit Linux and FreeBSD at least when using Clang, the pic is required.
99
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
1010
else()
1111
# Disable PIC for all targets. PIC is enabled for shared extensions manually.
1212
set(CMAKE_POSITION_INDEPENDENT_CODE OFF)
1313
endif()
14+
15+
message(
16+
STATUS
17+
"CMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE}"
18+
)

0 commit comments

Comments
 (0)