2013-10-15 19:17:36 +04:00
|
|
|
POSITION_INDEPENDENT_CODE
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
Whether to create a position-independent target
|
|
|
|
|
2014-02-05 17:51:08 +04:00
|
|
|
The ``POSITION_INDEPENDENT_CODE`` property determines whether position
|
2013-10-15 19:17:36 +04:00
|
|
|
independent executables or shared libraries will be created. This
|
2014-02-05 17:51:08 +04:00
|
|
|
property is ``True`` by default for ``SHARED`` and ``MODULE`` library
|
|
|
|
targets and ``False`` otherwise. This property is initialized by the value
|
|
|
|
of the :variable:`CMAKE_POSITION_INDEPENDENT_CODE` variable if it is set
|
|
|
|
when a target is created.
|