| 766 | } |
| 767 | |
| 768 | char const* cmGeneratorTarget::GetLinkPIEProperty( |
| 769 | std::string const& config) const |
| 770 | { |
| 771 | static std::string PICValue; |
| 772 | |
| 773 | PICValue = this->GetLinkInterfaceDependentStringAsBoolProperty( |
| 774 | "POSITION_INDEPENDENT_CODE", config); |
| 775 | |
| 776 | if (PICValue == "(unset)") { |
| 777 | // POSITION_INDEPENDENT_CODE is not set |
| 778 | return nullptr; |
| 779 | } |
| 780 | |
| 781 | auto status = this->GetPolicyStatusCMP0083(); |
| 782 | return (status != cmPolicies::WARN && status != cmPolicies::OLD) |
| 783 | ? PICValue.c_str() |
| 784 | : nullptr; |
| 785 | } |
| 786 | |
| 787 | bool cmGeneratorTarget::IsIPOEnabled(std::string const& lang, |
| 788 | std::string const& config) const |
no test coverage detected