Help: POSITION_INDEPENDENT_CODE applies to *all* libraries
It is sometimes useful, e.g. when linking a static library into a shared library, it needs to be PIC.
This commit is contained in:
parent
c36ba41bee
commit
7e1a0739db
@ -4,7 +4,7 @@ POSITION_INDEPENDENT_CODE
|
|||||||
Whether to create a position-independent target
|
Whether to create a position-independent target
|
||||||
|
|
||||||
The ``POSITION_INDEPENDENT_CODE`` property determines whether position
|
The ``POSITION_INDEPENDENT_CODE`` property determines whether position
|
||||||
independent executables or shared libraries will be created. This
|
independent executables or libraries will be created. This
|
||||||
property is ``True`` by default for ``SHARED`` and ``MODULE`` library
|
property is ``True`` by default for ``SHARED`` and ``MODULE`` library
|
||||||
targets and ``False`` otherwise. This property is initialized by the value
|
targets and ``False`` otherwise. This property is initialized by the value
|
||||||
of the :variable:`CMAKE_POSITION_INDEPENDENT_CODE` variable if it is set
|
of the :variable:`CMAKE_POSITION_INDEPENDENT_CODE` variable if it is set
|
||||||
|
Loading…
Reference in New Issue
Block a user