CMAKE_POSITION_INDEPENDENT_CODE

From Get docs
Cmake/docs/3.21/variable/cmake position independent code


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, its value is also used by the try_compile() command.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_POSITION_INDEPENDENT_CODE.html