### Navigation

- index
- next |
- previous |
- CMake »
- 3.4.3 Documentation »
- cmake-variables(7) »

# CMAKE_POSITION_INDEPENDENT_CODE

Default value for `POSITION_INDEPENDENT_CODE` of targets.

This variable is used to initialize the `POSITION_INDEPENDENT_CODE` property on all the targets. See that target property for additional information. If set, it’s value is also used by the `try_compile()` command.

### Navigation

- index
- next |
- previous |
- CMake »
- 3.4.3 Documentation »
- cmake-variables(7) »