POSITION_INDEPENDENT_CODE.rst 486 B

1234567891011
  1. POSITION_INDEPENDENT_CODE
  2. -------------------------
  3. Whether to create a position-independent target
  4. The ``POSITION_INDEPENDENT_CODE`` property determines whether position
  5. independent executables or shared libraries will be created. This
  6. property is ``True`` by default for ``SHARED`` and ``MODULE`` library
  7. targets and ``False`` otherwise. This property is initialized by the value
  8. of the :variable:`CMAKE_POSITION_INDEPENDENT_CODE` variable if it is set
  9. when a target is created.