POSITION_INDEPENDENT_CODE

Whether to create a position-independent target

POSITION_INDEPENDENT_CODE property determines whether position independent executables or shared 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 CMAKE_POSITION_INDEPENDENT_CODE variable if it is set when a target is created.

注意

For executable targets, the link step is controlled by the CMP0083 policy and the CheckPIESupported 模块。

上一话题

PDB_OUTPUT_DIRECTORY

下一话题

PREFIX

本页