1POSITION_INDEPENDENT_CODE 2------------------------- 3 4Whether to create a position-independent target 5 6The ``POSITION_INDEPENDENT_CODE`` property determines whether position 7independent executables or shared libraries will be created. This 8property is ``True`` by default for ``SHARED`` and ``MODULE`` library 9targets and ``False`` otherwise. This property is initialized by the value 10of the :variable:`CMAKE_POSITION_INDEPENDENT_CODE` variable if it is set 11when a target is created. 12 13.. note:: 14 15 For executable targets, the link step is controlled by the :policy:`CMP0083` 16 policy and the :module:`CheckPIESupported` module. 17