mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
a6315790a1
SHARED and MODULE library targets have POSITION_INDEPENDENT_CODE default to TRUE regardless of CMAKE_POSITION_INDEPENDENT_CODE.
10 lines
357 B
ReStructuredText
10 lines
357 B
ReStructuredText
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 targets that
|
|
are not ``SHARED`` or ``MODULE`` library targets.
|
|
If set, its value is also used by the :command:`try_compile` command.
|