summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt/POSITION_INDEPENDENT_CODE.rst
blob: 120244740e7ac2070b10968b1f15cd053877b188 (plain)
1
2
3
4
5
6
7
8
9
10
11
POSITION_INDEPENDENT_CODE
-------------------------

Whether to create a position-independent target

The POSITION_INDEPENDENT_CODE property determines whether position
independent executables or shared libraries will be created.  This
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 if it is set when a target is
created.