File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,15 @@ Check whether to enable the POSITION_INDEPENDENT_CODE or not.
44https://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 )
1010else ()
1111 # Disable PIC for all targets. PIC is enabled for shared extensions manually.
1212 set (CMAKE_POSITION_INDEPENDENT_CODE OFF )
1313endif ()
14+
15+ message (
16+ STATUS
17+ "CMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE} "
18+ )
You can’t perform that action at this time.
0 commit comments