mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-15 14:00:40 -05:00
Merge topic 'fix_pic_documentation'
a6315790a1Help: CMAKE_POSITION_INDEPENDENT_CODE is ignored for some targets7e1a0739dbHelp: POSITION_INDEPENDENT_CODE applies to *all* libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !10172
This commit is contained in:
@@ -4,11 +4,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
|
||||
independent executables or 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` variable if it is set
|
||||
when a target is created.
|
||||
targets. For other targets, this property is initialized by the value
|
||||
of the :variable:`CMAKE_POSITION_INDEPENDENT_CODE` variable if it is set
|
||||
when the target is created, or ``False`` otherwise.
|
||||
|
||||
.. note::
|
||||
|
||||
|
||||
@@ -4,6 +4,6 @@ CMAKE_POSITION_INDEPENDENT_CODE
|
||||
Default value for :prop_tgt:`POSITION_INDEPENDENT_CODE` of targets.
|
||||
|
||||
This variable is used to initialize the
|
||||
:prop_tgt:`POSITION_INDEPENDENT_CODE` property on all the targets.
|
||||
See that target property for additional information. If set, its
|
||||
value is also used by the :command:`try_compile` command.
|
||||
:prop_tgt:`POSITION_INDEPENDENT_CODE` property on targets that
|
||||
are not ``SHARED`` or ``MODULE`` library targets.
|
||||
If set, its value is also used by the :command:`try_compile` command.
|
||||
|
||||
Reference in New Issue
Block a user